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 zero(one,).two(three,).four(five,)
3 func1(arg1).func2(arg2,).func3(arg3).func4(arg4,).func5(arg5)
5 # Inner one-element tuple shouldn't explode
6 func1(arg1).func2(arg1, (one_tuple,)).func3(arg3)
8 (a, b, c, d,) = func1(arg1) and func2(arg2)
11 # Example from https://github.com/psf/black/issues/3229
12 def refresh_token(self, device_family, refresh_token, api_key):
13 return self.orchestration.refresh_token(
15 "refreshToken": refresh_token,
18 )["extensions"]["sdk"]["token"]
21 # Edge case where a bug in a working-in-progress version of
22 # https://github.com/psf/black/pull/3370 causes an infinite recursion.
24 long_module.long_class.long_func().another_func()
25 == long_module.long_class.long_func()["some_key"].another_func(arg1)
28 # Regression test for https://github.com/psf/black/issues/3414.
29 assert xxxxxxxxx.xxxxxxxxx.xxxxxxxxx(
31 ).xxxxxxxxxxxxxxxxxx(), (
32 "xxx {xxxxxxxxx} xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
53 # Inner one-element tuple shouldn't explode
54 func1(arg1).func2(arg1, (one_tuple,)).func3(arg3)
66 # Example from https://github.com/psf/black/issues/3229
67 def refresh_token(self, device_family, refresh_token, api_key):
68 return self.orchestration.refresh_token(
70 "refreshToken": refresh_token,
73 )["extensions"]["sdk"]["token"]
76 # Edge case where a bug in a working-in-progress version of
77 # https://github.com/psf/black/pull/3370 causes an infinite recursion.
79 long_module.long_class.long_func().another_func()
80 == long_module.long_class.long_func()["some_key"].another_func(arg1)
83 # Regression test for https://github.com/psf/black/issues/3414.
84 assert xxxxxxxxx.xxxxxxxxx.xxxxxxxxx(
86 ).xxxxxxxxxxxxxxxxxx(), (
87 "xxx {xxxxxxxxx} xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"