C0321
More than one statement on a single line
The Codiga Static Analysis engine is powered by the best open-source tools to check your Python code. Make sure your code does not have any security issues and follow design and other best practices. Automate your code reviews today and merge with confidence with Codiga.
More than one statement on a single line
Use len() without explicit argument
Detect functions that already exist
break or continue used outside a loop
Return outside function
The yield keyword is used outside a function
Use of operator that does not exist
Abstract class instantiation attempt
Bad argument passed to reversed()
A nonlocal variable does not have an attached name somewhere in the parent scopes.
Assigning an attribute not defined in the class slots
Detect class that inherit non-classes
Value conflict with __slots__
__iter__ returns non-iterator
The special method __int__ should have 0 parameter
Undefined variable name referenced in __all\__
Invalid object referenced in __all__
Attempting to unpack a non-sequence
The raise statement is not inside an except clause
Raising a new style class which doesn't inherit from BaseException
NotImplemented raised and should raise NotImplementedError instead
Another argument than the current class is given as first argument of the super builtin
Missing mandatory keyword argument in function call
Sequence type is indexed with an invalid type
Context manager doesn't implement __enter__ and __exit__
Unary operand is used on an object which does not support this type of operation.
Got multiple values for keyword argument in function call
Non-mapping value is used in a mapping context
Value is unsubscriptable
Invalid metaclass used
Incorrect format string
The argument to a str.{l,r,}strip call contains a duplicate character
Invalid literal comparison
Misplacing comma that creates a tuple
Statement have no effect
With statement returns multiple values
Conditional statement with potentially wrong function or method call due to missing parentheses
Possible unbalanced tuple unpacking with sequence
Argument of isinstance is not a type
Invalid format string
Missing format() argument key
Implicit string concatenation found in list
Boolean value has always the same value
Emitted when a binary arithmetic operation between two operands is not supported.