MCPcopy Create free account
hub / github.com/psf/black / long_lines

Function long_lines

tests/data/simple_cases/function.py:45–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 models.Customer.id.asc()
44 ).all()
45def long_lines():
46 if True:
47 typedargslist.extend(
48 gen_annotated_params(ast_args.kwonlyargs, ast_args.kw_defaults, parameters, implicit_default=True)
49 )
50 typedargslist.extend(
51 gen_annotated_params(
52 ast_args.kwonlyargs, ast_args.kw_defaults, parameters, implicit_default=True,
53 # trailing standalone comment
54 )
55 )
56 _type_comment_re = re.compile(
57 r"""
58 ^
59 [\t ]*
60 \#[ ]type:[ ]*
61 (?P<type>
62 [^#\t\n]+?
63 )
64 (?<!ignore) # note: this will force the non-greedy + in <type> to match
65 # a trailing space which is why we need the silliness below
66 (?<!ignore[ ]{1})(?<!ignore[ ]{2})(?<!ignore[ ]{3})(?<!ignore[ ]{4})
67 (?<!ignore[ ]{5})(?<!ignore[ ]{6})(?<!ignore[ ]{7})(?<!ignore[ ]{8})
68 (?<!ignore[ ]{9})(?<!ignore[ ]{10})
69 [\t ]*
70 (?P<nl>
71 (?:\#[^\n]*)?
72 \n?
73 )
74 $
75 """, re.MULTILINE | re.VERBOSE
76 )
77def trailing_comma():
78 mapping = {
79 A: 0.25 * (10.0 / 12),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected