ruff
381c186d - [ty] Reuse type aliases that are already unspecialized (#30977)

Commit
4 hours ago
[ty] Reuse type aliases that are already unspecialized (#30977) ## Summary Today, asking for the unspecialized form of a type alias can intern the same fields again. This PR returns the existing handle when the alias has neither a specialization nor a pending materialization. On a single-worker NumPy cold check, a prototype on `58f6b5b1be` skipped 1.41 million alias lookups and used 0.16% fewer whole-process instructions under Cachegrind, with no measurable change in live heap. ## Test Plan The ty semantic tests and pre-commit checks passed.
Author
Parents
Loading