Skip to content

Fix __class_getitem__ slightly - #2924

Merged
youknowone merged 4 commits into
masterfrom
fix-class_getitem
Aug 22, 2021
Merged

youknowone merged 4 commits into
masterfrom
fix-class_getitem

Conversation

@coolreader18

Copy link
Copy Markdown
Member

Because it was treating __class_getitem__ as a special method, subscripting a type from typing would just always return type instead of some sort of _GenericAlias

@youknowone

Copy link
Copy Markdown
Member

cc @fanninpm

@youknowone

Copy link
Copy Markdown
Member

Do you think it is time to go to 3.9? It looks like the issue was also related to 3.8/3.9 problem

@youknowone
youknowone merged commit 3f25fac into master Aug 22, 2021
@youknowone
youknowone deleted the fix-class_getitem branch August 22, 2021 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants