or from foo import bar a as no othe...">

[ty] suppress invalid suggestions in import statements by RasmusNygren · Pull Request #21484 · astral-sh/ruff (original) (raw)

@RasmusNygren @BurntSushi

After an import statement such as import collections a<CURSOR>, the only valid suggestion should be as. Similarly for from collections import defaultdict a<CURSOR>.

Ref astral-sh/ty#1562

BurntSushi

dcreager added a commit that referenced this pull request

Nov 17, 2025

@dcreager

dcreager added a commit that referenced this pull request

Nov 17, 2025

@dcreager

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 }})