Remove staticmethod.__new__ and classmethod.__new__ (#6934)

This commit is contained in:
Jelle Zijlstra
2022-01-17 00:50:04 -08:00
committed by GitHub
parent 6a88d5e7ae
commit 01f3f8abf6

View File

@@ -115,7 +115,6 @@ class staticmethod(Generic[_R]):
__func__: Callable[..., _R]
__isabstractmethod__: bool
def __init__(self: staticmethod[_R], __f: Callable[..., _R]) -> None: ...
def __new__(cls: type[Self], *args: Any, **kwargs: Any) -> Self: ...
def __get__(self, __obj: _T, __type: type[_T] | None = ...) -> Callable[..., _R]: ...
if sys.version_info >= (3, 10):
__name__: str
@@ -127,7 +126,6 @@ class classmethod(Generic[_R]):
__func__: Callable[..., _R]
__isabstractmethod__: bool
def __init__(self: classmethod[_R], __f: Callable[..., _R]) -> None: ...
def __new__(cls: type[Self], *args: Any, **kwargs: Any) -> Self: ...
def __get__(self, __obj: _T, __type: type[_T] | None = ...) -> Callable[..., _R]: ...
if sys.version_info >= (3, 10):
__name__: str