Skip to content

Commit 54d6437

Browse files
committed
Fix type tests on latest mypy
1 parent 6a3192f commit 54d6437

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/type_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ def sync_capture_test() -> None:
117117
assert_type(capture(sync_one, 3.14), Union[Value[int], Error])
118118
assert_type(capture(sync_one, param=3.14), Union[Value[int], Error])
119119
assert_type(capture(sync_raises), Error)
120-
capture(sync_one) # type: ignore[arg-type, call-arg]
121-
capture(sync_none, 1, 2) # type: ignore[arg-type, call-arg]
120+
capture(sync_one) # type: ignore[call-overload]
121+
capture(sync_none, 1, 2) # type: ignore[call-overload]
122122

123123

124124
async def sync_gen_test() -> None:
@@ -172,8 +172,8 @@ async def async_capture_test() -> None:
172172
await acapture(async_one, param=3.14), Union[Value[int], Error]
173173
)
174174
assert_type(await acapture(async_raises), Error)
175-
capture(async_one) # type: ignore[arg-type, call-arg]
176-
capture(async_none, 1, 2) # type: ignore[arg-type, call-arg]
175+
capture(async_one) # type: ignore[call-overload]
176+
capture(async_none, 1, 2) # type: ignore[call-overload]
177177

178178

179179
async def async_gen_test() -> None:

0 commit comments

Comments
 (0)