mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Add stub for typing_extensions.get_args (#4373)
This commit is contained in:
4
third_party/2and3/typing_extensions.pyi
vendored
4
third_party/2and3/typing_extensions.pyi
vendored
@@ -17,6 +17,7 @@ from typing import (
|
||||
NoReturn as NoReturn,
|
||||
Optional,
|
||||
Text as Text,
|
||||
Tuple,
|
||||
Type as Type,
|
||||
TypeVar,
|
||||
ValuesView,
|
||||
@@ -88,6 +89,9 @@ def get_type_hints(
|
||||
include_extras: bool = ...,
|
||||
) -> Dict[str, Any]: ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def get_args(tp: Any) -> Tuple[Any, ...]: ...
|
||||
|
||||
Annotated: _SpecialForm = ...
|
||||
_AnnotatedAlias: Any = ... # undocumented
|
||||
|
||||
|
||||
Reference in New Issue
Block a user