From bc662c0bd7def052e9edbf504bb468860c83f371 Mon Sep 17 00:00:00 2001 From: Andre Delfino Date: Tue, 1 Dec 2020 06:45:11 -0300 Subject: [PATCH] [doc] Fix abc.update_abstractmethods markup (GH-23576) Add link to ABCMeta while at it. --- Doc/library/abc.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/abc.rst b/Doc/library/abc.rst index 3a7414d7358..1a6ed474ff2 100644 --- a/Doc/library/abc.rst +++ b/Doc/library/abc.rst @@ -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::