Derived from the Pylint linter.
What it does#
Checks for "special" methods that have an unexpected method signature.
Why is this bad?#
"Special" methods, like
__len__, are expected to adhere to a specific,
standard function signature. Implementing a "special" method using a
non-standard function signature can lead to unexpected and surprising
behavior for users of a given class.