@@ -221,10 +221,15 @@ The :mod:`abc` module also provides the following decorators:
221
221
multiple-inheritance.
222
222
223
223
224
- The :mod: `abc ` module also support following legacy builtin decorators:
224
+ The :mod: `abc ` module also supports the following legacy builtin decorators:
225
225
226
226
.. decorator :: abstractclassmethod
227
227
228
+ .. versionadded :: 3.2
229
+ .. deprecated :: 3.3
230
+ It is now possible to use :class: `classmethod ` with
231
+ :func: `abstractmethod `, making this decorator redundant.
232
+
228
233
A subclass of the built-in :func: `classmethod `, indicating an abstract
229
234
classmethod. Otherwise it is similar to :func: `abstractmethod `.
230
235
@@ -238,14 +243,14 @@ The :mod:`abc` module also support following legacy builtin decorators:
238
243
def my_abstract_classmethod(cls, ...):
239
244
...
240
245
246
+
247
+ .. decorator :: abstractstaticmethod
248
+
241
249
.. versionadded :: 3.2
242
250
.. deprecated :: 3.3
243
- It is now possible to use :class: `classmethod ` with
251
+ It is now possible to use :class: `staticmethod ` with
244
252
:func: `abstractmethod `, making this decorator redundant.
245
253
246
-
247
- .. decorator :: abstractstaticmethod
248
-
249
254
A subclass of the built-in :func: `staticmethod `, indicating an abstract
250
255
staticmethod. Otherwise it is similar to :func: `abstractmethod `.
251
256
@@ -259,14 +264,14 @@ The :mod:`abc` module also support following legacy builtin decorators:
259
264
def my_abstract_staticmethod(...):
260
265
...
261
266
262
- .. versionadded :: 3.2
263
- .. deprecated :: 3.3
264
- It is now possible to use :class: `staticmethod ` with
265
- :func: `abstractmethod `, making this decorator redundant.
266
-
267
267
268
268
.. decorator :: abstractproperty(fget=None, fset=None, fdel=None, doc=None)
269
269
270
+ .. deprecated :: 3.3
271
+ It is now possible to use :class: `property `, :meth: `property.getter `,
272
+ :meth: `property.setter ` and :meth: `property.deleter ` with
273
+ :func: `abstractmethod `, making this decorator redundant.
274
+
270
275
A subclass of the built-in :func: `property `, indicating an abstract
271
276
property.
272
277
@@ -309,12 +314,6 @@ The :mod:`abc` module also support following legacy builtin decorators:
309
314
...
310
315
311
316
312
- .. deprecated :: 3.3
313
- It is now possible to use :class: `property `, :meth: `property.getter `,
314
- :meth: `property.setter ` and :meth: `property.deleter ` with
315
- :func: `abstractmethod `, making this decorator redundant.
316
-
317
-
318
317
The :mod: `abc ` module also provides the following functions:
319
318
320
319
.. function :: get_cache_token()
0 commit comments