Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e5af50

Browse files
abc: Shorten@deprecated messages
Noticed this in primer output frompython/mypy#17476.
1 parent4faad91 commit1e5af50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎stdlib/abc.pyi‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class ABCMeta(type):
2828
defregister(cls:ABCMeta,subclass:type[_T])->type[_T]: ...
2929

3030
defabstractmethod(funcobj:_FuncT)->_FuncT: ...
31-
@deprecated("Deprecated, use 'classmethod' with 'abstractmethod' instead")
31+
@deprecated("Use 'classmethod' with 'abstractmethod' instead")
3232
classabstractclassmethod(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
classabstractstaticmethod(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
classabstractproperty(property):
4343
__isabstractmethod__:Literal[True]
4444

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp