diff --git a/stdlib/2.7/typing.pyi b/stdlib/2.7/typing.pyi index 944328fa6..bb08ba397 100644 --- a/stdlib/2.7/typing.pyi +++ b/stdlib/2.7/typing.pyi @@ -338,3 +338,7 @@ class Pattern(Generic[AnyStr]): @overload def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + +# Functions + +def get_type_hints(obj: Callable) -> dict[str, Any]: ... diff --git a/stdlib/3/typing.pyi b/stdlib/3/typing.pyi index 582b863d7..e89daad03 100644 --- a/stdlib/3/typing.pyi +++ b/stdlib/3/typing.pyi @@ -406,3 +406,7 @@ class Pattern(Generic[AnyStr]): @overload def subn(self, repl: Callable[[Match[AnyStr]], AnyStr], string: AnyStr, count: int = ...) -> Tuple[AnyStr, int]: ... + +# Functions + +def get_type_hints(obj: Callable) -> dict[str, Any]: ...