@@ -170,17 +170,17 @@ The :mod:`!abc` module also provides the following decorator:
170
170
or is derived from it. A class that has a metaclass derived from
171
171
:class: `!ABCMeta ` cannot be instantiated unless all of its abstract methods
172
172
and properties are overridden. The abstract methods can be called using any
173
- of the normal 'super' call mechanisms. :func : `!abstractmethod ` may be used
173
+ of the normal 'super' call mechanisms. :deco : `!abstractmethod ` may be used
174
174
to declare abstract methods for properties and descriptors.
175
175
176
176
Dynamically adding abstract methods to a class, or attempting to modify the
177
177
abstraction status of a method or class once it is created, are only
178
178
supported using the :func: `update_abstractmethods ` function. The
179
- :func : `!abstractmethod ` only affects subclasses derived using regular
179
+ :deco : `!abstractmethod ` only affects subclasses derived using regular
180
180
inheritance; "virtual subclasses" registered with the ABC's
181
181
:meth: `~ABCMeta.register ` method are not affected.
182
182
183
- When :func : `!abstractmethod ` is applied in combination with other method
183
+ When :deco : `!abstractmethod ` is applied in combination with other method
184
184
descriptors, it should be applied as the innermost decorator, as shown in
185
185
the following usage examples::
186
186
@@ -218,7 +218,7 @@ The :mod:`!abc` module also provides the following decorator:
218
218
the descriptor must identify itself as abstract using
219
219
:attr: `!__isabstractmethod__ `. In general, this attribute should be ``True ``
220
220
if any of the methods used to compose the descriptor are abstract. For
221
- example, Python's built-in :class : `property ` does the equivalent of::
221
+ example, Python's built-in :deco : `property ` does the equivalent of::
222
222
223
223
class Descriptor:
224
224
...
@@ -242,13 +242,13 @@ The :mod:`!abc` module also supports the following legacy decorators:
242
242
243
243
.. versionadded :: 3.2
244
244
.. deprecated :: 3.3
245
- It is now possible to use :class : `classmethod ` with
246
- :func : `abstractmethod `, making this decorator redundant.
245
+ It is now possible to use :deco : `classmethod ` with
246
+ :deco : `abstractmethod `, making this decorator redundant.
247
247
248
- A subclass of the built-in :func : `classmethod `, indicating an abstract
249
- classmethod. Otherwise it is similar to :func : `abstractmethod `.
248
+ A subclass of the built-in :class : `classmethod `, indicating an abstract
249
+ classmethod. Otherwise it is similar to :deco : `abstractmethod `.
250
250
251
- This special case is deprecated, as the :func : `classmethod ` decorator
251
+ This special case is deprecated, as the :deco : `classmethod ` decorator
252
252
is now correctly identified as abstract when applied to an abstract
253
253
method::
254
254
@@ -263,13 +263,13 @@ The :mod:`!abc` module also supports the following legacy decorators:
263
263
264
264
.. versionadded :: 3.2
265
265
.. deprecated :: 3.3
266
- It is now possible to use :class : `staticmethod ` with
267
- :func : `abstractmethod `, making this decorator redundant.
266
+ It is now possible to use :deco : `staticmethod ` with
267
+ :deco : `abstractmethod `, making this decorator redundant.
268
268
269
- A subclass of the built-in :func : `staticmethod `, indicating an abstract
270
- staticmethod. Otherwise it is similar to :func : `abstractmethod `.
269
+ A subclass of the built-in :class : `staticmethod `, indicating an abstract
270
+ staticmethod. Otherwise it is similar to :deco : `abstractmethod `.
271
271
272
- This special case is deprecated, as the :func : `staticmethod ` decorator
272
+ This special case is deprecated, as the :deco : `staticmethod ` decorator
273
273
is now correctly identified as abstract when applied to an abstract
274
274
method::
275
275
@@ -283,14 +283,14 @@ The :mod:`!abc` module also supports the following legacy decorators:
283
283
.. decorator :: abstractproperty
284
284
285
285
.. deprecated :: 3.3
286
- It is now possible to use :class : `property `, :meth: `property.getter `,
286
+ It is now possible to use :deco : `property `, :meth: `property.getter `,
287
287
:meth: `property.setter ` and :meth: `property.deleter ` with
288
- :func : `abstractmethod `, making this decorator redundant.
288
+ :deco : `abstractmethod `, making this decorator redundant.
289
289
290
- A subclass of the built-in :func : `property `, indicating an abstract
290
+ A subclass of the built-in :class : `property `, indicating an abstract
291
291
property.
292
292
293
- This special case is deprecated, as the :func : `property ` decorator
293
+ This special case is deprecated, as the :deco : `property ` decorator
294
294
is now correctly identified as abstract when applied to an abstract
295
295
method::
296
296
0 commit comments