DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
http://docs.basedpyright.com/
Other
601 stars 12 forks source link

new diagnostic rule - error when `dataclass` extends single class with `__init__` #449

Open DetachHead opened 1 week ago

DetachHead commented 1 week ago
from dataclasses import dataclass
class Foo:
    def __init__(self):
        print("doesn't get called")

@dataclass
class Bar(Foo):
    ...

reportUnsafeMultipleInheritance catches some occurrences of this but only if it's extending multiple base classes