Add `__call__ to staticmethod` (#6275)

This commit is contained in:
Alex Waygood
2021-11-12 11:05:21 +00:00
committed by GitHub
parent bf92378722
commit 4eea13b60f

View File

@@ -121,6 +121,8 @@ class staticmethod(object): # Special, only valid as a decorator.
def __init__(self, __f: Callable[..., Any]) -> None: ...
def __new__(cls: Type[_T], *args: Any, **kwargs: Any) -> _T: ...
def __get__(self, __obj: _T, __type: Type[_T] | None = ...) -> Callable[..., Any]: ...
if sys.version_info >= (3, 10):
def __call__(self, *args: Any, **kwargs: Any) -> Any: ...
class classmethod(object): # Special, only valid as a decorator.
__func__: Callable[..., Any]