UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

26 lines (22 loc) • 505 B
id: no-singledispatch-on-method valid: - | from functools import singledispatch @singledispatch def process(value): return value - | from functools import singledispatchmethod class Foo: @singledispatchmethod @classmethod def process(cls, value): return value invalid: - | from functools import singledispatch class Foo: @singledispatch @classmethod def process(cls, value): return value