]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[doc] Fix abc.update_abstractmethods markup (GH-23576)
authorAndre Delfino <adelfino@gmail.com>
Tue, 1 Dec 2020 09:45:11 +0000 (06:45 -0300)
committerGitHub <noreply@github.com>
Tue, 1 Dec 2020 09:45:11 +0000 (01:45 -0800)
Add link to ABCMeta while at it.

Doc/library/abc.rst

index 3a7414d7358e7abe2476380550635650bafa48c9..1a6ed474ff21daba29c20bd60f0b27c5a4156363 100644 (file)
@@ -336,6 +336,7 @@ 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
@@ -343,7 +344,7 @@ The :mod:`abc` module also provides the following functions:
 
    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::