-
Notifications
You must be signed in to change notification settings - Fork 282
Closed
Labels
help wantedLarger than "good first issue", but still well-defined and ready for someone to pick upLarger than "good first issue", but still well-defined and ready for someone to pick uptypechecking
Description
Describe the Bug
def foo(x):
for _ in x:
return 1
else:
return 2 # ERROR sandbox.py:5:9-17: This `return` statement is unreachable
print(foo([]))Python: 3.12
The second return is marked unreachable. The example shows it being reached.
Sandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedLarger than "good first issue", but still well-defined and ready for someone to pick upLarger than "good first issue", but still well-defined and ready for someone to pick uptypechecking