We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cb6b14 commit a3c9392Copy full SHA for a3c9392
stdlib/2/typing.pyi
@@ -460,6 +460,8 @@ def get_type_hints(
460
def cast(tp: Type[_T], obj: Any) -> _T: ...
461
@overload
462
def cast(tp: str, obj: Any) -> Any: ...
463
+@overload
464
+def cast(tp: object, obj: Any) -> Any: ...
465
466
# Type constructors
467
stdlib/3/typing.pyi
@@ -633,6 +633,8 @@ if sys.version_info >= (3, 8):
633
def cast(typ: Type[_T], val: Any) -> _T: ...
634
635
def cast(typ: str, val: Any) -> Any: ...
636
637
+def cast(typ: object, val: Any) -> Any: ...
638
639
640
0 commit comments