mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Remove staticmethod.__new__ and classmethod.__new__ (#6934)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user