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.
6 d = {'key': 'value', 'key2': 'value2',}
10 call(arg={'explode': 'this',})
16 if a == {"a": 1,"b": 2,"c": 3,"d": 4,"e": 5,"f": 6,"g": 7,"h": 8,}["a"]:
19 def xxxxxxxxxxxxxxxxxxxxxxxxxxxx() -> Set[
20 "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
22 json = {"k": {"k2": {"k3": [1,]}}}
26 # The type annotation shouldn't get a trailing comma since that would change its type.
27 # Relevant bug report: https://github.com/psf/black/issues/2381.
28 def some_function_with_a_really_long_name() -> (
29 returning_a_deeply_nested_import_of_a_type_i_suppose
34 def some_method_with_a_really_long_name(very_long_parameter_so_yeah: str, another_long_parameter: int) -> (
35 another_case_of_returning_a_deeply_nested_import_of_a_type_i_suppose_cause_why_not
41 also_super_long_type_annotation_that_may_cause_an_AST_related_crash_in_black(this_shouldn_t_get_a_trailing_comma_too)
46 def func() -> ((also_super_long_type_annotation_that_may_cause_an_AST_related_crash_in_black(
47 this_shouldn_t_get_a_trailing_comma_too
53 # Make sure inner one-element tuple won't explode
54 some_module.some_function(
55 argument1, (one_element_tuple,), argument4, argument5, argument6
58 # Inner trailing comma causes outer to explode
59 some_module.some_function(
60 argument1, (one, two,), argument4, argument5, argument6
119 def xxxxxxxxxxxxxxxxxxxxxxxxxxxx() -> Set[
120 "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
133 # The type annotation shouldn't get a trailing comma since that would change its type.
134 # Relevant bug report: https://github.com/psf/black/issues/2381.
135 def some_function_with_a_really_long_name() -> (
136 returning_a_deeply_nested_import_of_a_type_i_suppose
141 def some_method_with_a_really_long_name(
142 very_long_parameter_so_yeah: str, another_long_parameter: int
144 another_case_of_returning_a_deeply_nested_import_of_a_type_i_suppose_cause_why_not
150 also_super_long_type_annotation_that_may_cause_an_AST_related_crash_in_black(
151 this_shouldn_t_get_a_trailing_comma_too
159 also_super_long_type_annotation_that_may_cause_an_AST_related_crash_in_black(
160 this_shouldn_t_get_a_trailing_comma_too
167 # Make sure inner one-element tuple won't explode
168 some_module.some_function(
169 argument1, (one_element_tuple,), argument4, argument5, argument6
172 # Inner trailing comma causes outer to explode
173 some_module.some_function(