[ty] Exclude typing_extensions from completions unless it's really available by BurntSushi · Pull Request #21731 · astral-sh/ruff (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Conversation
This works by adding a third module resolution mode that lets the caller
opt into some shadowing of modules that is otherwise not allowed (fortyping and typing_extensions).
Fixes astral-sh/ty#1658
Demo:
2025-12-01T09.36.34-05.00.mp4
mypy_primer results
Changes were detected when running on open source projects
pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- pandas-stubs/_typing.pyi:1207:16: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- Found 5814 diagnostics
- Found 5815 diagnostics
No memory usage changes detected ✅
…available
This works by adding a third module resolution mode that lets the caller
opt into some shadowing of modules that is otherwise not allowed (for
typing and typing_extensions).
Fixes astral-sh/ty#1658
BurntSushi deleted the ag/auto-import-partial-confusion branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Labels
Related to the LSP server
Multi-file analysis & type inference