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

`reportUninitializedInstanceVariable` false positive when initialized in `__new__` #455

Open DetachHead opened 1 week ago

DetachHead commented 1 week ago
class Foo:
    a: int # error: reportUninitializedInstanceVariable
    def __new__(cls):
        self = super().__new__(cls)
        self.a = 1
        return self