mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
add AsyncGenerator to typing.pyi, collections/abc.pyi and collections/__init__.pyi (#815)
This parallels https://github.com/python/typing/pull/346
This commit is contained in:
committed by
Guido van Rossum
parent
2195b9d297
commit
df9d11bf71
@@ -5,6 +5,7 @@
|
||||
# TODO more abstract base classes (interfaces in mypy)
|
||||
|
||||
# These are not exported.
|
||||
import sys
|
||||
from typing import (
|
||||
TypeVar, Generic, Dict, overload, List, Tuple,
|
||||
Callable, Any, Type, Optional, Union
|
||||
@@ -35,6 +36,8 @@ from typing import (
|
||||
MutableSet as MutableSet,
|
||||
AbstractSet as Set,
|
||||
)
|
||||
if sys.version_info >= (3, 6):
|
||||
from typing import AsyncGenerator as AsyncGenerator
|
||||
|
||||
_T = TypeVar('_T')
|
||||
_KT = TypeVar('_KT')
|
||||
|
||||
@@ -35,4 +35,5 @@ if sys.version_info >= (3, 5):
|
||||
if sys.version_info >= (3, 6):
|
||||
from . import (
|
||||
Reversible as Reversible,
|
||||
AsyncGenerator as AsyncGenerator,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user