Skip to content

Commit 4e3e456

Browse files
committed
Improve formatting
1 parent 0335b69 commit 4e3e456

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,21 +2466,21 @@ The appropriate metaclass for a class definition is determined in two steps:
24662466

24672467
1) 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

24752475
2) 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

Comments
 (0)