Thanks to visit codestin.com Credit goes to github.com
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 b5666d4 commit 9116b29Copy full SHA for 9116b29
1 file changed
stdlib/functools.pyi
@@ -51,7 +51,7 @@ class partial(Generic[_T]):
51
func: Callable[..., _T]
52
args: tuple[Any, ...]
53
keywords: dict[str, Any]
54
- def __init__(self, func: Callable[..., _T], *args: Any, **kwargs: Any) -> None: ...
+ def __new__(cls: Type[_S], __func: Callable[..., _T], *args: Any, **kwargs: Any) -> _S: ...
55
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
56
if sys.version_info >= (3, 9):
57
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
0 commit comments