Skip to content

Conversation

@asukaminato0721
Copy link
Contributor

fix #1407

Added collect_class_type_candidates so we can recover concrete ClassType candidates from TypeVar bounds and constraints when evaluating subscripts.

Updated the type[T] subscript branch to recognize Enum-bounded TypeVars, require string keys, and return the quantified type instead of flagging the access as unsupported.

@meta-cla meta-cla bot added the cla signed label Oct 30, 2025
@asukaminato0721 asukaminato0721 marked this pull request as ready for review October 30, 2025 12:58
@asukaminato0721 asukaminato0721 marked this pull request as draft October 30, 2025 12:58
@asukaminato0721 asukaminato0721 marked this pull request as ready for review October 30, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't subscript generic Enum parameters

1 participant