pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Uninitialized locals check

Open lolpack opened this issue 8 months ago • 1 comments

def foo():
    x  # <- This should error
    x = 5

lolpack avatar Mar 07 '25 07:03 lolpack

This is partially supported for cases like x: int or x = 1; del x, but the specific example in the issue doesn't work yet so keeping this issue open

yangdanny97 avatar Mar 24 '25 18:03 yangdanny97