@@ -28,7 +28,14 @@ def my_abstract_method(self, ...):
2828class abstractclassmethod (classmethod ):
2929 """A decorator indicating abstract classmethods.
3030
31- Deprecated, use 'classmethod' with 'abstractmethod' instead.
31+ Deprecated, use 'classmethod' with 'abstractmethod' instead:
32+
33+ class C(ABC):
34+ @classmethod
35+ @abstractmethod
36+ def my_abstract_classmethod(cls, ...):
37+ ...
38+
3239 """
3340
3441 __isabstractmethod__ = True
@@ -41,7 +48,14 @@ def __init__(self, callable):
4148class abstractstaticmethod (staticmethod ):
4249 """A decorator indicating abstract staticmethods.
4350
44- Deprecated, use 'staticmethod' with 'abstractmethod' instead.
51+ Deprecated, use 'staticmethod' with 'abstractmethod' instead:
52+
53+ class C(ABC):
54+ @staticmethod
55+ @abstractmethod
56+ def my_abstract_staticmethod(...):
57+ ...
58+
4559 """
4660
4761 __isabstractmethod__ = True
@@ -54,7 +68,14 @@ def __init__(self, callable):
5468class abstractproperty (property ):
5569 """A decorator indicating abstract properties.
5670
57- Deprecated, use 'property' with 'abstractmethod' instead.
71+ Deprecated, use 'property' with 'abstractmethod' instead:
72+
73+ class C(ABC):
74+ @property
75+ @abstractmethod
76+ def my_abstract_property(self):
77+ ...
78+
5879 """
5980
6081 __isabstractmethod__ = True
0 commit comments