Skip to content

Commit ba5f557

Browse files
committed
reword
1 parent 26f9363 commit ba5f557

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

peps/pep-0800.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ incorrect in general, as discussed in more detail :ref:`below <pep-800-mypy-inco
6262
The experimental ``ty`` type checker uses a third approach that aligns more closely with the :ref:`runtime behavior of Python <pep-800-solid-bases-cpython>`:
6363
it recognizes certain classes as "solid bases" that restrict multiple inheritance. Broadly speaking, every class must
6464
inherit from at most one unique solid base, and if there is no unique solid base, the class cannot exist; we'll provide a more
65-
precise definition below. However, ty's approach relies on hardcoded knowledge of particular built-in types.
65+
precise definition below. However, ty's approach relies on hardcoded knowledge of particular built-in types. The term "solid base" derives from the
66+
CPython implementation; this PEP uses the newly proposed term "disjoint base" instead.
6667

6768
This PEP proposes an extension to the type system that makes it possible to express when multiple inheritance is not
68-
allowed at runtime: an ``@disjoint_base`` decorator that marks a classes as a *disjoint base*, the term we introduce
69-
in preference to the term "solid base".
69+
allowed at runtime: an ``@disjoint_base`` decorator that marks a classes as a *disjoint base*.
7070
This gives type checkers a more precise understanding of reachability, and helps in several concrete areas.
7171

7272
Invalid class definitions

0 commit comments

Comments
 (0)