Fix type stubs in typing.pyi (#1263)

This commit is contained in:
DmitriyS authored and Guido van Rossum committed 2017-05-28 13:13:20 -07:00
1 parent 2053e5882f
commit 9f433a57f4
2 files changed
+4 -2

No files matched your search

+2 -1
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: ...
+2 -1
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: ...