CorrectnessΒΆ
- Accessing a protected member from outside the class
- Assigning a lambda expression to a variable
- Assigning to built-in function
- Bad except clauses order
- Bad first argument given to
super()
else
clause on loop without abreak
statement__exit__
must accept 3 arguments: type, value, traceback- Explicit return in __init__
__future__
import is not the first non-docstring statement- Implementing Java-style getters and setters
- Indentation contains mixed spaces and tabs
- Indentation contains tabs
- Method could be a function
- Method has no argument
- Missing argument to
super()
- Using a mutable default value as an argument
- No exception type(s) specified
- Not using
defaultdict()
- Not using
else
where appropriate in a loop - Not using explicit unpacking
- Not using
get()
to return a default value from a dict - Not using
setdefault()
to initialize a dictionary