pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

Missing docstring for descriptor alias

Open armoha opened this issue 5 months ago • 1 comments

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"

GIF 2024-09-15 오후 11-00-19

Repro Steps

  1. 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.

armoha avatar Sep 15 '24 05:09 armoha