[ty] Resolve type aliases in filter_union method by carljm · Pull Request #22989 · astral-sh/ruff (original) (raw)
This change modifies filter_union to resolve type aliases before
checking if the type is a union. This allows filter_union to properly
handle cases where a type alias resolves to a union type.
With this change, the explicit resolve_type_alias call in bind.rs
(added in #22988) is now redundant and has been removed.
Added additional test cases for union type aliases with:
- TypedDict dict literal inference
- TypedDict dict() call inference
- Set literal inference
https://claude.ai/code/session_01Fsp2dSw6mnTBV1M2Fnf6gt
carljm marked this pull request as ready for review
carljm deleted the claude/explore-typealias-expansion-31ZUP 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 }})