All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
2 MyLovelyCompanyTeamProjectComponent # NOT DRY
4 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
5 MyLovelyCompanyTeamProjectComponent as component # DRY
8 # Please keep __all__ alphabetized within each category.
11 # Super-special typing primitives.
16 # ABCs (from collections.abc).
17 'AbstractSet', # collections.abc.Set.
21 # Concrete collection types.
29 'NamedTuple', # Not really a type.
38 # builtin types and objects
46 # user-defined types and objects
48 Cheese("Wensleydale"),
52 if 'PYTHON' in os.environ:
53 add_compiler(compiler_from_env())
55 # for compiler in compilers.values():
56 # add_compiler(compiler)
57 add_compiler(compilers[(7.0, 32)])
58 # add_compiler(compilers[(7.1, 64)])
60 # Comment before function.
61 def inline_comments_in_brackets_ruin_everything():
63 parameters.children = [
68 parameters.children = [
71 children[-1], # type: ignore
74 parameters.children = [
75 parameters.children[0], # (2 what if this was actually long
77 parameters.children[-1], # )2
79 parameters.children = [parameters.what_if_this_was_actually_long.children[0], body, parameters.children[-1]] # type: ignore
80 if (self._proc is not None
81 # has the child process finished?
82 and self._returncode is None
83 # the child process has finished, but the
84 # transport hasn't been notified yet?
85 and self._proc.poll() is None):
87 # no newline before or after
99 ############################################################################
114 for element in collection # yup
115 if element is not None # right
121 for element in collection
123 if element is not None
126 # This one is actually too long to fit in a single line.
127 element.split('\n', 1)[0]
129 for element in collection.select_elements()
131 if element is not None
137 # and round and round we go
138 # and round and round we go
144 Node(statement, result),
145 Leaf(token.NEWLINE, '\n'), # FIXME: \r\n?
150 #######################
151 ### SECTION COMMENT ###
152 #######################
164 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
165 MyLovelyCompanyTeamProjectComponent, # NOT DRY
167 from com.my_lovely_company.my_lovely_team.my_lovely_project.my_lovely_component import (
168 MyLovelyCompanyTeamProjectComponent as component, # DRY
171 # Please keep __all__ alphabetized within each category.
174 # Super-special typing primitives.
178 # ABCs (from collections.abc).
179 "AbstractSet", # collections.abc.Set.
182 # Concrete collection types.
190 "NamedTuple", # Not really a type.
200 # builtin types and objects
208 # user-defined types and objects
210 Cheese("Wensleydale"),
214 if "PYTHON" in os.environ:
215 add_compiler(compiler_from_env())
217 # for compiler in compilers.values():
218 # add_compiler(compiler)
219 add_compiler(compilers[(7.0, 32)])
220 # add_compiler(compilers[(7.1, 64)])
222 # Comment before function.
223 def inline_comments_in_brackets_ruin_everything():
225 parameters.children = [children[0], body, children[-1]] # (1 # )1
226 parameters.children = [
229 children[-1], # type: ignore
232 parameters.children = [
233 parameters.children[0], # (2 what if this was actually long
235 parameters.children[-1], # )2
237 parameters.children = [
238 parameters.what_if_this_was_actually_long.children[0],
240 parameters.children[-1],
243 self._proc is not None
244 # has the child process finished?
245 and self._returncode is None
246 # the child process has finished, but the
247 # transport hasn't been notified yet?
248 and self._proc.poll() is None
251 # no newline before or after
269 ############################################################################
284 element for element in collection if element is not None # yup # yup # right
290 for element in collection
292 if element is not None
295 # This one is actually too long to fit in a single line.
296 element.split("\n", 1)[0]
298 for element in collection.select_elements()
300 if element is not None
306 # and round and round we go
307 # and round and round we go
312 [Node(statement, result), Leaf(token.NEWLINE, "\n")], # FIXME: \r\n?
316 #######################
317 ### SECTION COMMENT ###
318 #######################