Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
Proposal:
coroutine and generator should be subscriptable at runtime as they already are at type time
>>>importtypes>>>types.CoroutineType[None,None,int]TypeError:type'coroutine'isnotsubscriptable
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