We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f848e5 commit 219db61Copy full SHA for 219db61
1 file changed
pep8.py
@@ -777,9 +777,9 @@ def whitespace_around_named_parameter_equals(logical_line, tokens):
777
parens += 1
778
elif text == ')':
779
parens -= 1
780
- elif in_def and text == ':':
+ elif in_def and text == ':' and parens == 1:
781
annotated_func_arg = True
782
- elif parens and text == ',':
+ elif parens and text == ',' and parens == 1:
783
annotated_func_arg = False
784
elif parens and text == '=' and not annotated_func_arg:
785
no_space = True
0 commit comments