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
Bug report
Bug description:
AsyncIterator was removed from_PROTO_ALLOWLIST by#15647, without any discussion. It looks like an accident to me.
fromtypingimportAsyncIterator,ProtocolclassMyProto(AsyncIterator,Protocol): ...
result:
TypeError: Protocols can only inherit from other protocols, got <class 'collections.abc.AsyncIterator'>CPython versions tested on:
3.12
Operating systems tested on:
macOS