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

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