-
Notifications
You must be signed in to change notification settings - Fork 265
Closed
Labels
scoping-control-flowissues related to scoping and control flowissues related to scoping and control flowtypechecking
Description
Describe the Bug
from typing import reveal_type
class A:
def f(self, x):
for y in x:
pass
reveal_type(A().f(0)) # this is revealed as Never!
See sandbox link - the inlay hint for the inferred return type is -> Never as well.
Sandbox 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 flowtypechecking