Skip to content

"Docstrings from .py when type is from .pyi" is not working #4057

Description

@anci3ntr0ck

Describe the Bug

I saw the closed issue #1090, but when I use it myself, I still cannot get the docstring from the original .py file:

Image

What I want to see:

Image

Is this a configuration issue or is the code not working correctly?

Sandbox Link

https://pyrefly.org/sandbox/?project=N4IgZglgNgpgziAXKOBDAdgEwEYHsAeAdAA4CeS4ATrgLYAEALqcROgOZ0Q3G6UN2R0qKAB10YgAKDhYgMZRUcOHQBiuXIjF1tdYooQAaEGUowwUUoQa0oFAMR0ACqVPnSdNFjz46s3Okg2AFdKVAYIf0IxBwBlGBg6AAsGBmI4RAB6DJMzC0JeNgyYdAzMXFk4DL8AiGDQ8P8MgV46VAA3VGhUbFhff0CQsIj0OlxiBvQ4KPQyBkT-AFo2mEo4YboAXjoREABmQgBGACYdsQBtFepVgF0xIPQuHj4YTAXMCFNZcOXNugByWroXgwP5iIEMBamACOQQ%2BLwWAGsYKQFqhZLJ4Motn8AO6oSjoUHoEAAXyMaO%2BMBU0BgFE8OAIJHIJKAA

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

Labels

help wantedLarger than "good first issue", but still well-defined and ready for someone to pick uplanguage-serverIssues specific to our IDE integration rather than type checking

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions