pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

E741: regression for `re.I` as a default parameter

Open asottile opened this issue 5 years ago • 0 comments

def f(x=re.I):
    pass

2.5.0:

$ python -m pycodestyle t.py
$

2.6.0:

$ python -m pycodestyle t.py
t.py:1:12: E741 ambiguous variable name 'I'

originally reported here

regression appears to be introduced by b8db33dfa6cd4029b75efd1e7cab7c1b64d03bc7 via git bisect CC @rettenbs

asottile avatar May 15 '20 15:05 asottile