WPS344
ignores //= 0
#974
Labels
bug
Something isn't working
Hacktoberfest
Hactoberfest fun!
help wanted
Extra attention is needed
level:starter
Good for newcomers
Milestone
Bug report
What's wrong
This code is not marked as invalid:
How is that should be
It should raise
WPS344
. See here: https://github.com/wemake-services/wemake-python-styleguide/blob/master/wemake_python_styleguide/visitors/ast/operators.py#L100We also need to check for
ast.FloorDiv
as well.And edit a test here: https://github.com/wemake-services/wemake-python-styleguide/blob/master/tests/test_visitors/test_ast/test_operators/test_useless_math.py#L46
System information
flake8 information
Contents of
flake8 --bug-report
:pip information
Contents of
pip freeze
:The text was updated successfully, but these errors were encountered: