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, \
10 from third_party import (X,
17 if True: raise RuntimeError
22 exec('new-style exec', {}, {})
24 async def coroutine(arg, exec=False):
25 'Single-line docstring. Multiline is harder to reformat.'
26 async with some_connection() as conn:
27 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
28 await asyncio.sleep(1)
34 def function_signature_stress_test(number:int,no_annotation=None,text:str='default',* ,debug:bool=False,**kwargs) -> str:
35 return text[number:-1]
37 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''):
38 offset = attr.ib(default=attr.Factory( lambda: _r.uniform(10000, 200000)))
39 assert task._cancel_stack[:len(old_stack)] == old_stack
40 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''): ...
41 def spaces2(result= _core.Value(None)):
46 .query(models.Customer.id)\
47 .filter(models.Customer.account_id == account_id,
48 models.Customer.email == email_address)\
49 .order_by(models.Customer.id.asc())\
55 gen_annotated_params(ast_args.kwonlyargs, ast_args.kw_defaults, parameters, implicit_default=True)
62 _type_comment_re = re.compile(
70 (?<!ignore) # note: this will force the non-greedy + in <type> to match
71 # a trailing space which is why we need the silliness below
72 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
73 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
74 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
82 re.MULTILINE | re.VERBOSE
85 def single_literal_yapf_disable():
86 """Black does not support this."""
93 # No formatting to the end of the file
101 #!/usr/bin/env python3
105 from third_party import X, Y, Z
107 from library import some_connection, some_decorator
110 from third_party import (X,
117 if True: raise RuntimeError
122 exec('new-style exec', {}, {})
124 async def coroutine(arg, exec=False):
125 'Single-line docstring. Multiline is harder to reformat.'
126 async with some_connection() as conn:
127 await conn.do_what_i_mean('SELECT bobby, tables FROM xkcd', timeout=2)
128 await asyncio.sleep(1)
134 def function_signature_stress_test(number:int,no_annotation=None,text:str='default',* ,debug:bool=False,**kwargs) -> str:
135 return text[number:-1]
137 def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r""):
138 offset = attr.ib(default=attr.Factory(lambda: _r.uniform(10000, 200000)))
139 assert task._cancel_stack[: len(old_stack)] == old_stack
149 g: int = 1 if False else 2,
156 def spaces2(result=_core.Value(None)):
160 def example(session):
163 .query(models.Customer.id)\
164 .filter(models.Customer.account_id == account_id,
165 models.Customer.email == email_address)\
166 .order_by(models.Customer.id.asc())\
173 typedargslist.extend(
174 gen_annotated_params(
176 ast_args.kw_defaults,
178 implicit_default=True,
183 unnecessary_bracket()
186 _type_comment_re = re.compile(
194 (?<!ignore) # note: this will force the non-greedy + in <type> to match
195 # a trailing space which is why we need the silliness below
196 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
197 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
198 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
206 re.MULTILINE | re.VERBOSE,
211 def single_literal_yapf_disable():
212 """Black does not support this."""
213 BAZ = {(1, 2, 3, 4), (5, 6, 7, 8), (9, 10, 11, 12)} # yapf: disable
217 # No formatting to the end of the file