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]
34 gen_annotated_params(ast_args.kwonlyargs, ast_args.kw_defaults, parameters, implicit_default=True)
36 _type_comment_re = re.compile(
44 (?<!ignore) # note: this will force the non-greedy + in <type> to match
45 # a trailing space which is why we need the silliness below
46 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
47 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
48 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
55 """, re.MULTILINE | re.VERBOSE
61 #!/usr/bin/env python3
65 from third_party import X, Y, Z
67 from library import some_connection, some_decorator
86 async def coroutine(arg):
87 "Single-line docstring. Multiline is harder to reformat."
88 async with some_connection() as conn:
89 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
90 await asyncio.sleep(1)
94 @some_decorator(with_args=True, many_args=[1, 2, 3])
95 def function_signature_stress_test(
98 text: str = "default",
103 return text[number:-1]
108 typedargslist.extend(
109 gen_annotated_params(
111 ast_args.kw_defaults,
113 implicit_default=True,
116 _type_comment_re = re.compile(
124 (?<!ignore) # note: this will force the non-greedy + in <type> to match
125 # a trailing space which is why we need the silliness below
126 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
127 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
128 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
136 re.MULTILINE | re.VERBOSE,