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() -> (
120 Set["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
143 ) -> another_case_of_returning_a_deeply_nested_import_of_a_type_i_suppose_cause_why_not:
148 also_super_long_type_annotation_that_may_cause_an_AST_related_crash_in_black(
149 this_shouldn_t_get_a_trailing_comma_too
156 also_super_long_type_annotation_that_may_cause_an_AST_related_crash_in_black(
157 this_shouldn_t_get_a_trailing_comma_too
163 # Make sure inner one-element tuple won't explode
164 some_module.some_function(
165 argument1, (one_element_tuple,), argument4, argument5, argument6
168 # Inner trailing comma causes outer to explode
169 some_module.some_function(