[ty] Exclude typing_extensions from completions unless it's really available by BurntSushi · Pull Request #21731 · astral-sh/ruff (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@BurntSushi

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

Demo:

2025-12-01T09.36.34-05.00.mp4

@astral-sh-bot

@astral-sh-bot

mypy_primer results

Changes were detected when running on open source projects

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)

No memory usage changes detected ✅

AlexWaygood

AlexWaygood

@BurntSushi

…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 BurntSushi deleted the ag/auto-import-partial-confusion branch

December 1, 2025 16:24

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

server

Related to the LSP server

ty

Multi-file analysis & type inference