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)
58 _type_comment_re = re.compile(
66 (?<!ignore) # note: this will force the non-greedy + in <type> to match
67 # a trailing space which is why we need the silliness below
68 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
69 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
70 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
78 re.MULTILINE | re.VERBOSE
81 def single_literal_yapf_disable():
82 """Black does not support this."""
89 # No formatting to the end of the file
97 #!/usr/bin/env python3
101 from third_party import X, Y, Z
103 from library import some_connection, some_decorator
109 if True: raise RuntimeError
114 exec('new-style exec', {}, {})
116 async def coroutine(arg, exec=False):
117 'Single-line docstring. Multiline is harder to reformat.'
118 async with some_connection() as conn:
119 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
120 await asyncio.sleep(1)
126 def function_signature_stress_test(number:int,no_annotation=None,text:str='default',* ,debug:bool=False,**kwargs) -> str:
127 return text[number:-1]
129 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r""):
130 offset = attr.ib(default=attr.Factory(lambda: _r.uniform(10000, 200000)))
131 assert task._cancel_stack[: len(old_stack)] == old_stack
141 g: int = 1 if False else 2,
148 def spaces2(result=_core.Value(None)):
152 def example(session):
155 .query(models.Customer.id)\
156 .filter(models.Customer.account_id == account_id,
157 models.Customer.email == email_address)\
158 .order_by(models.Customer.id.asc())\
165 typedargslist.extend(
166 gen_annotated_params(
168 ast_args.kw_defaults,
170 implicit_default=True,
175 unnecessary_bracket()
178 _type_comment_re = re.compile(
186 (?<!ignore) # note: this will force the non-greedy + in <type> to match
187 # a trailing space which is why we need the silliness below
188 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
189 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
190 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
198 re.MULTILINE | re.VERBOSE,
203 def single_literal_yapf_disable():
204 """Black does not support this."""
205 BAZ = {(1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12)} # yapf: disable
209 # No formatting to the end of the file