Add type stub for typing.get_type_hints (#480)

Fixes issue #477
This commit is contained in:
Nicholas Bishop
2016-08-16 23:41:01 -04:00
committed by Guido van Rossum
parent 5a79ba1abb
commit a20d5c481a
2 changed files with 8 additions and 0 deletions

View File

@@ -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]: ...

View File

@@ -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]: ...