Skip to content

Commit 69d6d4a

Browse files
committed
Fixed typo in code sample.
1 parent 91d4adc commit 69d6d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spec/overload.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ programming error and should be reported by type checkers. The purpose of
196196
this check is to prevent unsoundness of this form::
197197

198198
@overload
199-
def is_one(x: Literal[0]) -> Literal[True]: ...
199+
def is_one(x: Literal[1]) -> Literal[True]: ...
200200
@overload
201201
def is_one(x: int) -> Literal[False]: ...
202202

0 commit comments

Comments
 (0)