Make types classes that are generic at type time subscriptable at runtime #110209
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-typing
type-feature
A feature request or enhancement
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
coroutine and generator should be subscriptable at runtime as they already are at type time
https://github.com/python/typeshed/blob/31916d1e0c4c213cac031e2a448e5531206e3ab4/stdlib/types.pyi#L402
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
python/typing#1480 is where this stemmed from
Linked PRs
The text was updated successfully, but these errors were encountered: