Skip to content

Commit

Permalink
Document type.__orig_bases__
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed Apr 12, 2023
1 parent fb9ef70 commit dc433c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,12 @@ Resolving MRO entries
of classes that will be used instead of the base. The returned tuple may be
empty: in these cases, the original base is ignored.


.. attribute:: type.__orig_bases__

If the class originally had bases modified by :meth:`~object.__mro_entries__`,
this the *bases* tuple.

.. seealso::

:func:`types.resolve_bases`
Expand Down

0 comments on commit dc433c4

Please sign in to comment.