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, \
13 if True: raise RuntimeError
18 exec("new-style exec", {}, {})
20 async def coroutine(arg, exec=False):
21 "Single-line docstring. Multiline is harder to reformat."
22 async with some_connection() as conn:
23 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
24 await asyncio.sleep(1)
30 def function_signature_stress_test(number:int,no_annotation=None,text:str="default",* ,debug:bool=False,**kwargs) -> str:
31 return text[number:-1]
33 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''):
34 offset = attr.ib(default=attr.Factory( lambda: _r.uniform(10000, 200000)))
35 assert task._cancel_stack[:len(old_stack)] == old_stack
36 def spaces_types(a: int = 1, b: tuple = (), c: list = [], d: dict = {}, e: bool = True, f: int = -1, g: int = 1 if False else 2, h: str = "", i: str = r''): ...
37 def spaces2(result= _core.Value(None)):
42 .query(models.Customer.id)\
43 .filter(models.Customer.account_id == account_id,
44 models.Customer.email == email_address)\
45 .order_by(models.Customer.id.asc())\
51 gen_annotated_params(ast_args.kwonlyargs, ast_args.kw_defaults, parameters, implicit_default=True)
53 _type_comment_re = re.compile(
61 (?<!ignore) # note: this will force the non-greedy + in <type> to match
62 # a trailing space which is why we need the silliness below
63 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
64 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
65 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
72 """, re.MULTILINE | re.VERBOSE
78 #!/usr/bin/env python3
82 from third_party import X, Y, Z
84 from library import some_connection, some_decorator
90 if True: raise RuntimeError
95 exec("new-style exec", {}, {})
97 async def coroutine(arg, exec=False):
98 "Single-line docstring. Multiline is harder to reformat."
99 async with some_connection() as conn:
100 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
101 await asyncio.sleep(1)
107 def function_signature_stress_test(number:int,no_annotation=None,text:str="default",* ,debug:bool=False,**kwargs) -> str:
108 return text[number:-1]
112 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''):
113 offset = attr.ib(default=attr.Factory(lambda: _r.uniform(10000, 200000)))
114 assert task._cancel_stack[:len(old_stack)] == old_stack
124 g: int = 1 if False else 2,
131 def spaces2(result=_core.Value(None)):
135 def example(session):
138 .query(models.Customer.id)\
139 .filter(models.Customer.account_id == account_id,
140 models.Customer.email == email_address)\
141 .order_by(models.Customer.id.asc())\
148 typedargslist.extend(
149 gen_annotated_params(
151 ast_args.kw_defaults,
153 implicit_default=True,
156 _type_comment_re = re.compile(
164 (?<!ignore) # note: this will force the non-greedy + in <type> to match
165 # a trailing space which is why we need the silliness below
166 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
167 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
168 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
176 re.MULTILINE | re.VERBOSE,