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
18 async def coroutine(arg):
19 "Single-line docstring. Multiline is harder to reformat."
20 async with some_connection() as conn:
21 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
22 await asyncio.sleep(1)
28 def function_signature_stress_test(number:int,no_annotation=None,text:str="default",* ,debug:bool=False,**kwargs) -> str:
29 return text[number:-1]
30 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''):
31 offset = attr.ib(default=attr.Factory( lambda: _r.uniform(10000, 200000)))
32 assert task._cancel_stack[:len(old_stack)] == old_stack
33 def spaces2(result= _core.Value(None)):
36 result = session.query(models.Customer.id).filter(
37 models.Customer.account_id == account_id,
38 models.Customer.email == email_address,
40 models.Customer.id.asc()
45 gen_annotated_params(ast_args.kwonlyargs, ast_args.kw_defaults, parameters, implicit_default=True)
47 _type_comment_re = re.compile(
55 (?<!ignore) # note: this will force the non-greedy + in <type> to match
56 # a trailing space which is why we need the silliness below
57 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
58 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
59 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
66 """, re.MULTILINE | re.VERBOSE
72 #!/usr/bin/env python3
76 from third_party import X, Y, Z
78 from library import some_connection, some_decorator
99 async def coroutine(arg):
100 "Single-line docstring. Multiline is harder to reformat."
101 async with some_connection() as conn:
102 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
103 await asyncio.sleep(1)
107 @some_decorator(with_args=True, many_args=[1, 2, 3])
108 def function_signature_stress_test(
111 text: str = "default",
116 return text[number:-1]
119 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''):
120 offset = attr.ib(default=attr.Factory(lambda: _r.uniform(10000, 200000)))
121 assert task._cancel_stack[:len(old_stack)] == old_stack
124 def spaces2(result=_core.Value(None)):
128 def example(session):
129 result = session.query(models.Customer.id).filter(
130 models.Customer.account_id == account_id, models.Customer.email == email_address
132 models.Customer.id.asc()
138 typedargslist.extend(
139 gen_annotated_params(
141 ast_args.kw_defaults,
143 implicit_default=True,
146 _type_comment_re = re.compile(
154 (?<!ignore) # note: this will force the non-greedy + in <type> to match
155 # a trailing space which is why we need the silliness below
156 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
157 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
158 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
166 re.MULTILINE | re.VERBOSE,