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
It would be good if either the rule were changed to check for both, or if a new rule were created to check for unary prefix decrement operators. The rationale is the same; users coming from other languages which support ++ and -- unary prefix operators might not realise that these 'operators' in Python don't do anything, causing subtle bugs.
The text was updated successfully, but these errors were encountered:
unary-prefix-increment
(B002
) warns users aboutbut not
It would be good if either the rule were changed to check for both, or if a new rule were created to check for unary prefix decrement operators. The rationale is the same; users coming from other languages which support
++
and--
unary prefix operators might not realise that these 'operators' in Python don't do anything, causing subtle bugs.The text was updated successfully, but these errors were encountered: