diff --git a/stdlib/functools.pyi b/stdlib/functools.pyi index 990fed20d..9c56ff1d2 100644 --- a/stdlib/functools.pyi +++ b/stdlib/functools.pyi @@ -52,7 +52,7 @@ class partial(Generic[_T]): args: tuple[Any, ...] keywords: dict[str, Any] def __new__(cls: Type[_S], __func: Callable[..., _T], *args: Any, **kwargs: Any) -> _S: ... - def __call__(self, *args: Any, **kwargs: Any) -> _T: ... + def __call__(__self, *args: Any, **kwargs: Any) -> _T: ... if sys.version_info >= (3, 9): def __class_getitem__(cls, item: Any) -> GenericAlias: ... @@ -88,7 +88,7 @@ class _SingleDispatchCallable(Generic[_T]): @overload def register(self, cls: Type[Any], func: Callable[..., _T]) -> Callable[..., _T]: ... def _clear_cache(self) -> None: ... - def __call__(self, *args: Any, **kwargs: Any) -> _T: ... + def __call__(__self, *args: Any, **kwargs: Any) -> _T: ... def singledispatch(func: Callable[..., _T]) -> _SingleDispatchCallable[_T]: ...