Skip to content

Commit de81026

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent bab532e commit de81026

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/spec/overload.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ should report an error::
158158
def func(x: str, /) -> str: ...
159159
@overload
160160
def func(x: int) -> int: ...
161-
161+
162162
# This implementation is inconsistent with the second overload
163163
# because it does not accept a keyword argument ``x`` and the
164164
# the overload's return type ``int`` is not assignable to the
@@ -169,7 +169,7 @@ should report an error::
169169
Overlapping overloads
170170
^^^^^^^^^^^^^^^^^^^^^
171171

172-
If two overloads can accept the same set of arguments but have
172+
If two overloads can accept the same set of arguments but have
173173
different return types, the overloads are said to "partially overlap".
174174
This condition is indicative of a programming error and should
175175
be reported by type checkers::
@@ -184,7 +184,7 @@ be reported by type checkers::
184184
def func(x: int) -> str: ...
185185

186186
If all arguments accepted by an overload are also always accepted by
187-
an earlier overload, the two overloads are said to "fully overlap".
187+
an earlier overload, the two overloads are said to "fully overlap".
188188
In this case, the latter overload will never be used. This condition
189189
is indicative of a programming error and should be reported by type
190190
checkers::
@@ -355,7 +355,7 @@ Example 3::
355355
def example3(x: int, y: int) -> tuple[int, int]: ...
356356
@overload
357357
def example3(*args: int) -> tuple[int, ...]: ...
358-
358+
359359
def test():
360360
# Step 1 eliminates second overload. Step 4 and
361361
# step 5 do not apply. Step 6 picks the first

0 commit comments

Comments
 (0)