mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Add PEP 593 (Annotated etc.) typing_extensions stubs (#3369)
The code has been added to typing_extensions in https://github.com/python/typing/pull/632 and https://github.com/python/typing/pull/639/.
This commit is contained in:
committed by
Jelle Zijlstra
parent
6058c23136
commit
6e4f6403ac
10
third_party/2and3/typing_extensions.pyi
vendored
10
third_party/2and3/typing_extensions.pyi
vendored
@@ -12,7 +12,7 @@ from typing import overload as overload
|
||||
from typing import Text as Text
|
||||
from typing import Type as Type
|
||||
from typing import TYPE_CHECKING as TYPE_CHECKING
|
||||
from typing import TypeVar, Any, Mapping, ItemsView, KeysView, ValuesView, Dict, Type
|
||||
from typing import TypeVar, Any, Mapping, ItemsView, KeysView, Optional, ValuesView, Dict, Type
|
||||
|
||||
_T = TypeVar('_T')
|
||||
_F = TypeVar('_F', bound=Callable[..., Any])
|
||||
@@ -59,3 +59,11 @@ if sys.version_info >= (3, 5):
|
||||
|
||||
if sys.version_info >= (3, 6):
|
||||
from typing import AsyncGenerator as AsyncGenerator
|
||||
|
||||
def get_type_hints(
|
||||
obj: Callable[..., Any], globalns: Optional[Dict[str, Any]] = ..., localns: Optional[Dict[str, Any]] = ...,
|
||||
include_extras: bool = ...
|
||||
) -> Dict[str, Any]: ...
|
||||
|
||||
Annotated: _SpecialForm = ...
|
||||
_AnnotatedAlias: Any = ... # undocumented
|
||||
|
||||
Reference in New Issue
Block a user