@@ -2466,21 +2466,21 @@ The appropriate metaclass for a class definition is determined in two steps:
24662466
246724671) a candidate metaclass is determined as follows:
24682468
2469- * if no bases and no explicit metaclass are given, then :func: `type ` is used
2470- as candidate;
2471- * if bases are defined, the metaclass of the first base is used as candidate;
2472- * if an explicit metaclass is given and it is *not * an instance of
2473- :func: `type `, then it is used directly as the metaclass and step 2 is skipped.
2469+ * if no bases and no explicit metaclass are given, then :func: `type ` is used
2470+ as candidate;
2471+ * if bases are defined, the metaclass of the first base is used as candidate;
2472+ * if an explicit metaclass is given and it is *not * an instance of
2473+ :func: `type `, then it is used directly as the metaclass and step 2 is skipped.
24742474
247524752) bases, if present, are traversed left-to-right, and the most derived
24762476 metaclass is determined as follows:
24772477
2478- * if the metaclass of the current candidate is a subtype of the metaclass of
2479- the current base, updated the candidate to the metaclass of the base and
2480- continue to the next base;
2481- * if the current candidate is a subtype of the metaclass of the current base,
2482- continue to the next base;
2483- * else raise a :exc: `TypeError `.
2478+ * if the metaclass of the current candidate is a subtype of the metaclass of
2479+ the current base, updated the candidate to the metaclass of the base and
2480+ continue to the next base;
2481+ * if the current candidate is a subtype of the metaclass of the current base,
2482+ continue to the next base;
2483+ * else raise a :exc: `TypeError `.
24842484
24852485
24862486.. _prepare :
0 commit comments