Skip to content

Commit

Permalink
fix typo in more_types.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelg100 authored Jun 30, 2024
1 parent 02d3667 commit 17401a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/more_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ program:
The ``summarize([])`` call matches both variants: an empty list could
be either a ``list[int]`` or a ``list[str]``. In this case, mypy
will break the tie by picking the first matching variant: ``output``
will have an inferred type of ``float``. The implementor is responsible
will have an inferred type of ``float``. The implementer is responsible
for making sure ``summarize`` breaks ties in the same way at runtime.

However, there are two exceptions to the "pick the first match" rule.
Expand Down

0 comments on commit 17401a3

Please sign in to comment.