Add Awaitable, AsyncIterable, AsyncIterator to typing.py.
diff --git a/Lib/typing.py b/Lib/typing.py
index 1757f13..823f9be 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -28,6 +28,9 @@
# ABCs (from collections.abc).
'AbstractSet', # collections.abc.Set.
+ 'Awaitable',
+ 'AsyncIterator',
+ 'AsyncIterable',
'ByteString',
'Container',
'Hashable',
@@ -1261,6 +1264,18 @@
Hashable = collections_abc.Hashable # Not generic.
+class Awaitable(Generic[T_co], extra=collections_abc.Awaitable):
+ __slots__ = ()
+
+
+class AsyncIterable(Generic[T_co], extra=collections_abc.AsyncIterable):
+ __slots__ = ()
+
+
+class AsyncIterator(AsyncIterable[T_co], extra=collections_abc.AsyncIterator):
+ __slots__ = ()
+
+
class Iterable(Generic[T_co], extra=collections_abc.Iterable):
__slots__ = ()