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

Skip to content

Commit dc433c4

Browse files
committed
Document type.__orig_bases__
1 parent fb9ef70 commit dc433c4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,12 @@ Resolving MRO entries
20972097
of classes that will be used instead of the base. The returned tuple may be
20982098
empty: in these cases, the original base is ignored.
20992099

2100+
2101+
.. attribute:: type.__orig_bases__
2102+
2103+
If the class originally had bases modified by :meth:`~object.__mro_entries__`,
2104+
this the *bases* tuple.
2105+
21002106
.. seealso::
21012107

21022108
:func:`types.resolve_bases`

0 commit comments

Comments
 (0)