Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af8a4df

Browse files
committed
docs: Better wording for __objclass__ docs. Issue #19281
1 parent d3f918c commit af8a4df

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,12 +1467,12 @@ class' :attr:`__dict__`.
14671467
Called to delete the attribute on an instance *instance* of the owner class.
14681468

14691469

1470-
The :attr:`__objclass__` is interpreted by the :mod:`inspect` module as
1471-
specifying the class where this object was defined (setting this appropriately
1472-
can assist in runtime introspection of dynamic class attributes). For callables,
1473-
it may indicate that an instance of the given type (or a subclass) is expected
1474-
or required as the first positional argument (for example, CPython sets this
1475-
attribute for unbound methods that are implemented in C).
1470+
The attribute :attr:`__objclass__` is interpreted by the :mod:`inspect` module
1471+
as specifying the class where this object was defined (setting this
1472+
appropriately can assist in runtime introspection of dynamic class attributes).
1473+
For callables, it may indicate that an instance of the given type (or a
1474+
subclass) is expected or required as the first positional argument (for example,
1475+
CPython sets this attribute for unbound methods that are implemented in C).
14761476

14771477

14781478
.. _descriptor-invocation:

0 commit comments

Comments
 (0)