We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8db33d commit e5cdc22Copy full SHA for e5cdc22
pycodestyle.py
@@ -1451,10 +1451,12 @@ def ambiguous_identifier(logical_line, tokens):
1451
if prev_text == 'def':
1452
is_func_def = True
1453
# update parameter parentheses level
1454
- if parameter_parentheses_level == 0 and prev_type == tokenize.NAME and \
+ if parameter_parentheses_level == 0 and \
1455
+ prev_type == tokenize.NAME and \
1456
token_type == tokenize.OP and text == '(':
1457
parameter_parentheses_level = 1
- elif parameter_parentheses_level > 0 and token_type == tokenize.OP:
1458
+ elif parameter_parentheses_level > 0 and \
1459
+ token_type == tokenize.OP:
1460
if text == '(':
1461
parameter_parentheses_level += 1
1462
elif text == ')':
0 commit comments