@@ -28,7 +28,14 @@ def my_abstract_method(self, ...):
28
28
class abstractclassmethod (classmethod ):
29
29
"""A decorator indicating abstract classmethods.
30
30
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
+
32
39
"""
33
40
34
41
__isabstractmethod__ = True
@@ -41,7 +48,14 @@ def __init__(self, callable):
41
48
class abstractstaticmethod (staticmethod ):
42
49
"""A decorator indicating abstract staticmethods.
43
50
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
+
45
59
"""
46
60
47
61
__isabstractmethod__ = True
@@ -54,7 +68,14 @@ def __init__(self, callable):
54
68
class abstractproperty (property ):
55
69
"""A decorator indicating abstract properties.
56
70
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
+
58
79
"""
59
80
60
81
__isabstractmethod__ = True
0 commit comments