Added support in typing.pyi for PEP 612 (ParamSpec and Concatenate) (#4446)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2020-08-17 13:49:58 -07:00
committed by GitHub
parent e1c4d2a713
commit f20c565eb3

View File

@@ -49,6 +49,12 @@ if sys.version_info >= (3, 8):
if sys.version_info < (3, 7):
class GenericMeta(type): ...
if sys.version_info >= (3, 10):
class ParamSpec:
__name__: str
def __init__(self, name: str) -> None: ...
Concatenate: _SpecialForm = ...
# Return type that indicates a function does not return.
# This type is equivalent to the None type, but the no-op Union is necessary to
# distinguish the None type from the None value.