mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-11 06:21:57 +08:00
Add TypeGuard (PEP 647 draft) (#4879)
This commit is contained in:
@@ -61,6 +61,7 @@ if sys.version_info >= (3, 10):
|
||||
def __init__(self, name: str) -> None: ...
|
||||
Concatenate: _SpecialForm = ...
|
||||
TypeAlias: _SpecialForm = ...
|
||||
TypeGuard: _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
|
||||
|
||||
3
third_party/2and3/typing_extensions.pyi
vendored
3
third_party/2and3/typing_extensions.pyi
vendored
@@ -112,3 +112,6 @@ else:
|
||||
__name__: str
|
||||
def __init__(self, name: str) -> None: ...
|
||||
Concatenate: _SpecialForm = ...
|
||||
|
||||
# PEP 647
|
||||
TypeGuard: _SpecialForm = ...
|
||||
|
||||
Reference in New Issue
Block a user