@@ -28,7 +28,13 @@ 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, instead use `classmethod` on top of `abstractmethod`:
32
+
33
+ @classmethod
34
+ @abstractmethod
35
+ def your_function(cls):
36
+ ...
37
+
32
38
"""
33
39
34
40
__isabstractmethod__ = True
@@ -41,7 +47,13 @@ def __init__(self, callable):
41
47
class abstractstaticmethod (staticmethod ):
42
48
"""A decorator indicating abstract staticmethods.
43
49
44
- Deprecated, use 'staticmethod' with 'abstractmethod' instead.
50
+ Deprecated, instead use `staticmethod` on top of `abstractmethod`:
51
+
52
+ @staticmethod
53
+ @abstractmethod
54
+ def your_function():
55
+ ...
56
+
45
57
"""
46
58
47
59
__isabstractmethod__ = True
@@ -54,7 +66,13 @@ def __init__(self, callable):
54
66
class abstractproperty (property ):
55
67
"""A decorator indicating abstract properties.
56
68
57
- Deprecated, use 'property' with 'abstractmethod' instead.
69
+ Deprecated, instead use `property` on top of `abstractmethod`:
70
+
71
+ @property
72
+ @abstractmethod
73
+ def your_function(self):
74
+ ...
75
+
58
76
"""
59
77
60
78
__isabstractmethod__ = True
0 commit comments