diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-06-12 14:23:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 14:23:03 (GMT) |
commit | 92c9c6ae147e1e658bbc8d454f8c7b2c4dea31d1 (patch) | |
tree | 7e4c602d0c2ed2c096a9b1d06b61d69120ba415e /Doc/howto | |
parent | 42b25dd61ff3593795c4cc2ffe876ab766098b24 (diff) | |
download | cpython-92c9c6ae147e1e658bbc8d454f8c7b2c4dea31d1.zip cpython-92c9c6ae147e1e658bbc8d454f8c7b2c4dea31d1.tar.gz cpython-92c9c6ae147e1e658bbc8d454f8c7b2c4dea31d1.tar.bz2 |
gh-120345: Fix incorrect use of the :class: role with the "()" suffix (GH-120347)
* Remove "()" when refer to a class as a type.
* Use :func: when refer to a callable.
* Fix reference to the datetime.astimezone() method.
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/descriptor.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 51f9f4a..b29488b 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst @@ -787,7 +787,7 @@ Invocation from super --------------------- The logic for super's dotted lookup is in the :meth:`__getattribute__` method for -object returned by :class:`super()`. +object returned by :func:`super`. A dotted lookup such as ``super(A, obj).m`` searches ``obj.__class__.__mro__`` for the base class ``B`` immediately following ``A`` and then returns |