Skip to content

Commit 64d07ae

Browse files
abc: Shorten @deprecated messages (#12271)
Noticed this in primer output from python/mypy#17476.
1 parent 4faad91 commit 64d07ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/abc.pyi

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class ABCMeta(type):
2828
def register(cls: ABCMeta, subclass: type[_T]) -> type[_T]: ...
2929

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

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

41-
@deprecated("Deprecated, use 'property' with 'abstractmethod' instead")
41+
@deprecated("Use 'property' with 'abstractmethod' instead")
4242
class abstractproperty(property):
4343
__isabstractmethod__: Literal[True]
4444

0 commit comments

Comments
 (0)