Skip to content

fix Hover should prefer a non-empty .pyi docstring before falling back to .py #4803 - #4804

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4803
Open

fix Hover should prefer a non-empty .pyi docstring before falling back to .py #4803#4804
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4803

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #4803

Hover now prefers non-empty .pyi documentation and falls back to .py for empty/missing stub docs

Test Plan

add test

@meta-cla meta-cla Bot added the cla signed label Sep 3, 2026
@github-actions github-actions Bot added the size/m label Sep 3, 2026
@meta-codesync

meta-codesync Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D118667885. (Because this pull request was imported automatically, there will not be any future comments.)

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hover should prefer a non-empty .pyi docstring before falling back to .py

2 participants