mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 05:20:49 -05:00
Fixes https://github.com/astral-sh/ty/issues/2488 When a type alias is defined using PEP 695's `type` statement syntax (e.g., `type Array = Eager | Lazy`), overload resolution was failing because the type alias was not being expanded into its underlying union type. This fix updates both `expand_type` and `is_expandable_type` in `arguments.rs` to handle `Type::TypeAlias` by recursively checking and expanding the alias's value type.