Improve stubs for classmethod and staticmethod (#10421)

This commit is contained in:
Alex Waygood
2023-07-19 12:32:04 +01:00
committed by GitHub
parent 61914253a0
commit 1088ab3d93
2 changed files with 10 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ def abstractmethod(funcobj: _FuncT) -> _FuncT: ...
class abstractclassmethod(classmethod[_T, _P, _R_co]):
__isabstractmethod__: Literal[True]
def __init__(self, callable: Callable[Concatenate[_T, _P], _R_co]) -> None: ...
def __init__(self, callable: Callable[Concatenate[type[_T], _P], _R_co]) -> None: ...
class abstractstaticmethod(staticmethod[_P, _R_co]):
__isabstractmethod__: Literal[True]