Skip to content

Commit 2a2cfd4

Browse files
committed
ignore any return from StopIteration
1 parent 8ee33c5 commit 2a2cfd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/result/result.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def wrapper(
559559
try:
560560
first_bit = next(gen)
561561
except StopIteration as e:
562-
return e.value
562+
return e.value # type: ignore[no-any-return]
563563
except exceptions as exc:
564564
yield Err(exc)
565565
return None
@@ -576,7 +576,7 @@ def wrapper(
576576
try:
577577
yield_value = gen.send(send_value)
578578
except StopIteration as e:
579-
return e.value
579+
return e.value # type: ignore[no-any-return]
580580
except exceptions as exc:
581581
send_value = yield Err(exc)
582582
return None

0 commit comments

Comments
 (0)