Skip to content

Commit 7128c11

Browse files
JelleZijlstraAkuli
andauthored
Update Doc/reference/compound_stmts.rst
Co-authored-by: Akuli <akuviljanen17@gmail.com>
1 parent 00c3942 commit 7128c11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,9 +1545,9 @@ resolve a consistent MRO that satisfies these rules from the list of bases provi
15451545
...
15461546
TypeError: Cannot create a consistent method resolution order (MRO) for bases Base, Child
15471547

1548-
In the MRO of ``Grandchild``, ``Child`` must appear before ``Base`` because it is first
1549-
in the base class list, but it must also appear after ``Base`` because it is a child of
1550-
``Base``. This is a contradiction, so the class cannot be defined.
1548+
In the MRO of ``Grandchild``, ``Base`` must appear before ``Child`` because it is first
1549+
in the base class list, but it must also appear after ``Child`` because it is a parent of
1550+
``Child``. This is a contradiction, so the class cannot be defined.
15511551

15521552
If some of the bases have a custom :term:`metaclass`, the metaclass of the resulting class
15531553
is chosen among the metaclasses of the bases and the explicitly specified metaclass of the

0 commit comments

Comments
 (0)