Skip to content

Commit 6316d12

Browse files
Update peps/pep-0800.rst
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 9ace6e6 commit 6316d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peps/pep-0800.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ provide more precise type information to users.
145145
As a concrete example, a possible implementation of assignability with intersection types could be that
146146
given an intersection type ``A & B``, a type ``C`` is assignable to it if ``C`` is assignable to at least one of
147147
``A`` and ``B``, and overlaps with all of ``A`` and ``B``. ("Overlaps" here means that at least one runtime value could exist
148-
that would be a member of both types. That is, ``A`` and ``B`` overlap if ``A & B`` is inhabited.) The second part of therule ensures that ``str`` is not assignable to a type like ``int & Any``: while ``str`` is assignable to ``Any``,
148+
that would be a member of both types. That is, ``A`` and ``B`` overlap if ``A & B`` is inhabited.) The second part of the rule ensures that ``str`` is not assignable to a type like ``int & Any``: while ``str`` is assignable to ``Any``,
149149
it does not overlap with ``int``. But of course, we can only know that ``str`` and ``int`` do not overlap if we know
150150
that both classes are solid bases.
151151

0 commit comments

Comments
 (0)