Skip to content

fix [pyrefly][completions][auto-import] rank based on deprecated aliases #2345#3992

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

fix [pyrefly][completions][auto-import] rank based on deprecated aliases #2345#3992
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:2345

Conversation

@asukaminato0721

Copy link
Copy Markdown
Contributor

Summary

Fixes #2345

Added version-gated deprecated stdlib alias detection for typing aliases, auto-import completions now tag those aliases deprecated, so ranking demotes them.

collections.abc reexports from bundled stubs are now surfaced for deprecated typing aliases.

Test Plan

add test

@github-actions

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

1 participant