mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Add `__call__ to staticmethod` (#6275)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user