Skip to content

Commit

Permalink
abc: Shorten @deprecated messages (#12271)
Browse files Browse the repository at this point in the history
Noticed this in primer output from python/mypy#17476.
  • Loading branch information
JelleZijlstra committed Jul 4, 2024
1 parent 4faad91 commit 64d07ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stdlib/abc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ class ABCMeta(type):
def register(cls: ABCMeta, subclass: type[_T]) -> type[_T]: ...

def abstractmethod(funcobj: _FuncT) -> _FuncT: ...
@deprecated("Deprecated, use 'classmethod' with 'abstractmethod' instead")
@deprecated("Use 'classmethod' with 'abstractmethod' instead")
class abstractclassmethod(classmethod[_T, _P, _R_co]):
__isabstractmethod__: Literal[True]
def __init__(self, callable: Callable[Concatenate[type[_T], _P], _R_co]) -> None: ...

@deprecated("Deprecated, use 'staticmethod' with 'abstractmethod' instead")
@deprecated("Use 'staticmethod' with 'abstractmethod' instead")
class abstractstaticmethod(staticmethod[_P, _R_co]):
__isabstractmethod__: Literal[True]
def __init__(self, callable: Callable[_P, _R_co]) -> None: ...

@deprecated("Deprecated, use 'property' with 'abstractmethod' instead")
@deprecated("Use 'property' with 'abstractmethod' instead")
class abstractproperty(property):
__isabstractmethod__: Literal[True]

Expand Down

0 comments on commit 64d07ae

Please sign in to comment.