You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, it should raise 3 of them. Let's refactor ast.AnnAssign to be ast.Assign and here they are:
» flake8 ex.py --select=N
ex.py
1:2 N816 variable 'mixedCase' in global scope should not be mixedCase
mixedCase = 1
^
4:6 N806 variable 'mixedCase' in function should be lowercase
mixedCase = 1
^
7:6 N815 variable 'mixedCase' in class scope should not be mixedCase
mixedCase = 1
^
Full list of violations and explanations:
https://wemake-python-stylegui.de/en/0.13.4/pages/usage/violations/
This code raises 0 violations:
But, it should raise 3 of them. Let's refactor
ast.AnnAssign
to beast.Assign
and here they are:Related: wemake-services/wemake-python-styleguide#1138
The text was updated successfully, but these errors were encountered: