pylance-release
pylance-release copied to clipboard
Missing docstring for descriptor alias
Environment data
- Language Server version: v2024.9.100
- OS and version: Windows 10 22H2 19045.4894 x64
- Python version (and distribution if applicable, e.g. Anaconda): 3.11.9
- python.analysis.indexing: true
- python.analysis.typeCheckingMode: off
Code Snippet
class Foo:
class Descriptor:
def __get__(self, obj, objtype=None):
return self
a = b = c = Descriptor()
"this docstring is only visible for Foo.c"
Repro Steps
- input above code
Expected behavior
Same docstring is shown for Foo.a/b/c
Actual behavior
Docstring is missing while autocompletion and type hint work fine.