Skip to content

Commit

Permalink
Fixed typo in code sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictraut committed Dec 13, 2024
1 parent 91d4adc commit 69d6d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/spec/overload.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ programming error and should be reported by type checkers. The purpose of
this check is to prevent unsoundness of this form::

@overload
def is_one(x: Literal[0]) -> Literal[True]: ...
def is_one(x: Literal[1]) -> Literal[True]: ...
@overload
def is_one(x: int) -> Literal[False]: ...

Expand Down

0 comments on commit 69d6d4a

Please sign in to comment.