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
Use default iterators and operators for types that support them, like lists, dictionaries, and files[link].
For common operations like multiplication, use the functions from the operator module instead of lambda functions. For example, prefer operator.mul to lambda x, y: x * y.[link]
If a class inherits from no other base classes, explicitly inherit from object. This also applies to nested classes.[link]
Use the format method or the % operator for formatting strings, even when the parameters are all strings. Use your best judgement to decide between + and % (or format) though.[link]
Even a file meant to be used as a script should be importable and a mere import should not have the side effect of executing the script's main functionality. The main functionality should be in a main() function.[link]
The text was updated successfully, but these errors were encountered:
Missing Google Style Guide rules that are not already covered by pylint include:
The text was updated successfully, but these errors were encountered: