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

No inlay hints for class member assignment #441

Open tianze0926 opened 1 week ago

tianze0926 commented 1 week ago

Inlay hints are displayed for normal variable assignments, but they are not shown when a class member is assigned (i.e. self.xxx = yyy).

class A:
    def __init__(self) -> None:
        a = []
        self.a = []
    def b(self):
        self.a = {}

In Pylance inlay hints are displayed for both cases: