Skip to content

Commit fecf258

Browse files
typing_extensions.get_type_hints exists only in 3.7+ (#6283)
1 parent 59408d9 commit fecf258

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

stdlib/typing_extensions.pyi

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,13 @@ TypedDict: object = ...
7272

7373
OrderedDict = _Alias()
7474

75-
def get_type_hints(
76-
obj: Callable[..., Any],
77-
globalns: dict[str, Any] | None = ...,
78-
localns: dict[str, Any] | None = ...,
79-
include_extras: bool = ...,
80-
) -> dict[str, Any]: ...
81-
8275
if sys.version_info >= (3, 7):
76+
def get_type_hints(
77+
obj: Callable[..., Any],
78+
globalns: dict[str, Any] | None = ...,
79+
localns: dict[str, Any] | None = ...,
80+
include_extras: bool = ...,
81+
) -> dict[str, Any]: ...
8382
def get_args(tp: Any) -> Tuple[Any, ...]: ...
8483
def get_origin(tp: Any) -> Any | None: ...
8584

0 commit comments

Comments
 (0)