Fix type stubs in typing.pyi (#1263)

This commit is contained in:
DmitriyS
2017-05-28 23:13:20 +03:00
committed by Guido van Rossum
parent 2053e5882f
commit 9f433a57f4
2 changed files with 4 additions and 2 deletions

View File

@@ -486,7 +486,8 @@ class Pattern(Generic[AnyStr]):
# Functions
def get_type_hints(obj: Callable) -> dict[str, Any]: ...
def get_type_hints(obj: Callable, globalns: Optional[dict[str, Any]] = ...,
localns: Optional[dict[str, Any]] = ...) -> dict[str, Any]: ...
def cast(tp: Type[_T], obj: Any) -> _T: ...