Skip to content

Commit 75ff1db

Browse files
committed
try finally return in async104.py
1 parent 452ab16 commit 75ff1db

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/eval_files/async104.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# ARG --enable=ASYNC103,ASYNC104
2+
import sys
3+
4+
25
try:
36
...
47
# raise different exception
@@ -104,7 +107,8 @@ def foo2():
104107
else:
105108
return # type: ignore[unreachable] # error: 12
106109
finally:
107-
return # error: 12
110+
if sys.version_info < (3, 14):
111+
return # error: 12
108112

109113

110114
# don't avoid re-raise with continue/break

0 commit comments

Comments
 (0)