Skip to content

Commit

Permalink
[doc] Fix abc.update_abstractmethods markup (pythonGH-23576)
Browse files Browse the repository at this point in the history
Add link to ABCMeta while at it.
  • Loading branch information
andresdelfino authored and adorilson committed Mar 11, 2021
1 parent 681b835 commit a625d27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/abc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,15 @@ The :mod:`abc` module also provides the following functions:
.. versionadded:: 3.4

.. function:: update_abstractmethods(cls)

A function to recalculate an abstract class's abstraction status. This
function should be called if a class's abstract methods have been
implemented or changed after it was created. Usually, this function should
be called from within a class decorator.

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

If *cls* is not an instance of ABCMeta, does nothing.
If *cls* is not an instance of :class:`ABCMeta`, does nothing.

.. note::

Expand Down

0 comments on commit a625d27

Please sign in to comment.