From f42de016b8443bea012d06d02c88d41e0bd30237 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 13 Jan 2022 14:59:28 +0300 Subject: [PATCH] Remove misleading comment from `staticmethod` and `classmethod` (#6907) --- stdlib/builtins.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/builtins.pyi b/stdlib/builtins.pyi index bf01fd687..a94b08140 100644 --- a/stdlib/builtins.pyi +++ b/stdlib/builtins.pyi @@ -111,7 +111,7 @@ class object: def __dir__(self) -> Iterable[str]: ... def __init_subclass__(cls) -> None: ... -class staticmethod(Generic[_R]): # Special, only valid as a decorator. +class staticmethod(Generic[_R]): __func__: Callable[..., _R] __isabstractmethod__: bool def __init__(self: staticmethod[_R], __f: Callable[..., _R]) -> None: ... @@ -123,7 +123,7 @@ class staticmethod(Generic[_R]): # Special, only valid as a decorator. __wrapped__: Callable[..., _R] def __call__(self, *args: Any, **kwargs: Any) -> _R: ... -class classmethod(Generic[_R]): # Special, only valid as a decorator. +class classmethod(Generic[_R]): __func__: Callable[..., _R] __isabstractmethod__: bool def __init__(self: classmethod[_R], __f: Callable[..., _R]) -> None: ...