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.
2 first_item, second_item = (
3 some_looooooooong_module.some_looooooooooooooong_function_name(
4 first_argument, second_argument, third_argument
8 some_dict["with_a_long_key"] = (
9 some_looooooooong_module.some_looooooooooooooong_function_name(
10 first_argument, second_argument, third_argument
14 # Make sure it works when the RHS only has one pair of (optional) parens.
15 first_item, second_item = (
16 some_looooooooong_module.SomeClass.some_looooooooooooooong_variable_name
19 some_dict["with_a_long_key"] = (
20 some_looooooooong_module.SomeClass.some_looooooooooooooong_variable_name
23 # Make sure chaining assignments work.
24 first_item, second_item, third_item, forth_item = m["everything"] = (
25 some_looooooooong_module.some_looooooooooooooong_function_name(
26 first_argument, second_argument, third_argument
30 # Make sure when the RHS's first split at the non-optional paren fits,
31 # we split there instead of the outer RHS optional paren.
32 first_item, second_item = some_looooooooong_module.some_loooooog_function_name(
33 first_argument, second_argument, third_argument
42 last_item_very_loooooong,
43 ) = some_looooooooong_module.some_looooooooooooooong_function_name(
44 first_argument, second_argument, third_argument
53 last_item_very_loooooong,
54 ) = everything = some_looooong_function_name(
55 first_argument, second_argument, third_argument
59 # Make sure unsplittable type ignore won't be moved.
60 some_kind_of_table[some_key] = util.some_function( # type: ignore # noqa: E501
62 ).intersection(pk_cols)
66 ] = lambda obj: obj.some_long_named_method() # type: ignore # noqa: E501
69 some_key # type: ignore # noqa: E501
70 ] = lambda obj: obj.some_long_named_method()
73 # Make when when the left side of assignment plus the opening paren "... = (" is
74 # exactly line length limit + 1, it won't be split like that.
75 xxxxxxxxx_yyy_zzzzzzzz[
76 xx.xxxxxx(x_yyy_zzzzzz.xxxxx[0]), x_yyy_zzzzzz.xxxxxx(xxxx=1)
80 # Right side of assignment contains un-nested pairs of inner parens.
81 some_kind_of_instance.some_kind_of_map[a_key] = (
82 isinstance(some_var, SomeClass)
83 and table.something_and_something != table.something_else
85 isinstance(some_other_var, BaseClass) and table.something != table.some_other_thing