Add overload to cast for objects (#4851)

Fixes #4810
This commit is contained in:
Nils K authored and GitHub committed 2020-12-27 23:46:26 -08:00
1 parent 2cb6b14834
commit a3c9392331
2 files changed
+4

No files matched your search

+2
View File
@@ -633,6 +633,8 @@ if sys.version_info >= (3, 8):
def cast(typ: Type[_T], val: Any) -> _T: ...
@overload
def cast(typ: str, val: Any) -> Any: ...
@overload
def cast(typ: object, val: Any) -> Any: ...
# Type constructors