gh-101100: Improve documentation for attributes on instance methods (#112832)

This commit is contained in:
Alex Waygood 2023-12-08 13:18:53 +00:00 committed by GitHub
parent e4c0876033
commit ed21d0c1f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 75 additions and 40 deletions

View file

@ -492,7 +492,7 @@ attributes (see :ref:`import-mod-attrs` for module attributes):
Methods implemented via descriptors that also pass one of the other tests
return ``False`` from the :func:`ismethoddescriptor` test, simply because the
other tests promise more -- you can, e.g., count on having the
:ref:`__func__ <instance-methods>` attribute (etc) when an object passes
:attr:`~method.__func__` attribute (etc) when an object passes
:func:`ismethod`.