diff --git a/stdlib/3/functools.pyi b/stdlib/3/functools.pyi index 3b57064dc8df..10469c183868 100644 --- a/stdlib/3/functools.pyi +++ b/stdlib/3/functools.pyi @@ -86,6 +86,7 @@ if sys.version_info >= (3, 8): def register(self, cls: Any, method: None = ...) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ... @overload def register(self, cls: Any, method: Callable[..., _T]) -> Callable[..., _T]: ... + def __call__(self, *args: Any, **kwargs: Any) -> _T: ... class cached_property(Generic[_T]): func: Callable[[Any], _T] diff --git a/tests/stubtest_whitelists/py38.txt b/tests/stubtest_whitelists/py38.txt index a1bc6b042394..78dab20a38d4 100644 --- a/tests/stubtest_whitelists/py38.txt +++ b/tests/stubtest_whitelists/py38.txt @@ -101,6 +101,7 @@ dis.stack_effect email.message.MIMEPart.as_string enum.Enum._generate_next_value_ functools.partialmethod.__get__ +functools.singledispatchmethod.__call__ # A lie to reflect that the descriptor get returns a callable gettext.install gettext.translation hmac.compare_digest