C0123
Using type() instead of isinstance() for a typecheck.
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.
Using type() instead of isinstance() for a typecheck.
Consider using enumerate instead of iterating with range and len
Consider iterating the dictionary directly instead of calling .keys()
Multiple imports on one line
Wrong import order
Import not put at the top level of the file
Use of wildcard imports
Module imported twice
Using the global statement
Unused import
Unused variable
Do not use lazy formatting
Do not use format() in logging function
Missing format attribute
Duplicate string formatting argument
Anomalous backslash in string
Redundant use of unit test assert
Use of deprecated method
Thread needs the target function
Consider iterating with .items()
Accessing only the first or last element of str.split() and should be done more efficiently.
Use implicit boolean with len()
Use a sequence type when iterating over values When iterating over values, sequence types (e.g., lists, tuples, ranges) are more efficient than sets.
Consider using a decorator instead of calling staticmethod
Consider using Python 3 style super() without arguments
Consider using 'with' for resource-allocating operations
An expression is compared to NaNvalues like numpy.NaN and float('nan')
Used when we detect a string with a u prefix. These prefixes were necessary in Python 2 to indicate a string was Unicode, but since Python 3.0 strings are Unicode by default.
Using deprecated module
Use deprecated decorator
Unnecessarily calls dunder method %s. %s.
Leaving functions creating breakpoints in production code is not recommended.
Unnecessary list index lookup, use '%s' instead.
cache will keep all method args alive indefinitely, including 'self'
Duplicate value in set
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.