singledispatchmethod-function (PLE1520)
Added in 0.6.0 · Related issues · View source
Derived from the Pylint linter.
Fix is sometimes available.
What it does
Checks for non-method functions decorated with @singledispatchmethod.
Why is this bad?
The @singledispatchmethod decorator is intended for use with methods, not
functions.
Instead, use the @singledispatch decorator.
Example
Use instead:
Fix safety
This rule's fix is marked as unsafe, as migrating from @singledispatchmethod to
@singledispatch may change the behavior of the code.