Skip to content

Commit bc662c0

Browse files
[doc] Fix abc.update_abstractmethods markup (GH-23576)
Add link to ABCMeta while at it.
1 parent 80a429e commit bc662c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/abc.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,15 @@ The :mod:`abc` module also provides the following functions:
336336
.. versionadded:: 3.4
337337

338338
.. function:: update_abstractmethods(cls)
339+
339340
A function to recalculate an abstract class's abstraction status. This
340341
function should be called if a class's abstract methods have been
341342
implemented or changed after it was created. Usually, this function should
342343
be called from within a class decorator.
343344

344345
Returns *cls*, to allow usage as a class decorator.
345346

346-
If *cls* is not an instance of ABCMeta, does nothing.
347+
If *cls* is not an instance of :class:`ABCMeta`, does nothing.
347348

348349
.. note::
349350

0 commit comments

Comments
 (0)