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