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.
5 from third_party import X, Y, Z
7 from library import some_connection, \
12 if True: raise RuntimeError
17 exec("new-style exec", {}, {})
19 async def coroutine(arg, exec=False):
20 "Single-line docstring. Multiline is harder to reformat."
21 async with some_connection() as conn:
22 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
23 await asyncio.sleep(1)
29 def function_signature_stress_test(number:int,no_annotation=None,text:str="default",* ,debug:bool=False,**kwargs) -> str:
30 return text[number:-1]
31 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''):
32 offset = attr.ib(default=attr.Factory( lambda: _r.uniform(10000, 200000)))
33 assert task._cancel_stack[:len(old_stack)] == old_stack
34 def spaces2(result= _core.Value(None)):
37 result = session.query(models.Customer.id).filter(
38 models.Customer.account_id == account_id,
39 models.Customer.email == email_address,
41 models.Customer.id.asc()
46 gen_annotated_params(ast_args.kwonlyargs, ast_args.kw_defaults, parameters, implicit_default=True)
48 _type_comment_re = re.compile(
56 (?<!ignore) # note: this will force the non-greedy + in <type> to match
57 # a trailing space which is why we need the silliness below
58 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
59 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
60 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
67 """, re.MULTILINE | re.VERBOSE
73 #!/usr/bin/env python3
77 from third_party import X, Y, Z
79 from library import some_connection, some_decorator
97 exec("new-style exec", {}, {})
101 async def coroutine(arg, exec=False):
102 "Single-line docstring. Multiline is harder to reformat."
103 async with some_connection() as conn:
104 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
105 await asyncio.sleep(1)
109 @some_decorator(with_args=True, many_args=[1, 2, 3])
110 def function_signature_stress_test(
113 text: str = "default",
118 return text[number:-1]
121 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''):
122 offset = attr.ib(default=attr.Factory(lambda: _r.uniform(10000, 200000)))
123 assert task._cancel_stack[:len(old_stack)] == old_stack
126 def spaces2(result=_core.Value(None)):
130 def example(session):
131 result = session.query(models.Customer.id).filter(
132 models.Customer.account_id == account_id, models.Customer.email == email_address
134 models.Customer.id.asc()
140 typedargslist.extend(
141 gen_annotated_params(
143 ast_args.kw_defaults,
145 implicit_default=True,
148 _type_comment_re = re.compile(
156 (?<!ignore) # note: this will force the non-greedy + in <type> to match
157 # a trailing space which is why we need the silliness below
158 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
159 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
160 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
168 re.MULTILINE | re.VERBOSE,