Closed
Description
Bug report
Bug description:
AsyncIterator was removed from _PROTO_ALLOWLIST
by #15647, without any discussion. It looks like an accident to me.
from typing import AsyncIterator, Protocol
class MyProto(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