-
Notifications
You must be signed in to change notification settings - Fork 281
Open
Labels
scoping-control-flowissues related to scoping and control flowissues related to scoping and control flowstaletypechecking
Description
Describe the Bug
Incorrect unreachable return error in the following function. May be related to #2020, but not sure
def fun1():
for i in range(2):
with suppress(ZeroDivisionError):
x = i/0
return x
return 1.0 # marked unreachableSandbox Link
(Only applicable for extension issues) IDE Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scoping-control-flowissues related to scoping and control flowissues related to scoping and control flowstaletypechecking