Skip to content

Commit

Permalink
Incorporated PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictraut committed Aug 23, 2024
1 parent 3906a12 commit bb8fe09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/spec/overload.rst
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ Example 3::
@overload
def example3(*args: int) -> tuple[int, ...]: ...

def test():
def test(val: list[int]):
# Step 1 eliminates second overload. Step 4 and
# step 5 do not apply. Step 6 picks the first
# overload.
Expand All @@ -392,7 +392,6 @@ Example 3::

# Step 1 doesn't eliminate any overloads. Step 4
# picks the third overload.
val = [1, 2, 3, 4]
r3 = example3(*val)
reveal_type(r3) # Should reveal tuple[int, ...]

Expand Down

0 comments on commit bb8fe09

Please sign in to comment.