ruff
66c3aaa3 - [red-knot] - Flow-control for boolean operations (#13940)

Commit
1 year ago
[red-knot] - Flow-control for boolean operations (#13940) ## Summary As python uses short-circuiting boolean operations in runtime, we should mimic that logic in redknot as well. For example, we should detect that in the following code `x` might be undefined inside the block: ```py if flag or (x := 1): print(x) ``` ## Test Plan Added mdtest suit for boolean expressions. --------- Co-authored-by: Carl Meyer <carl@astral.sh>
Author
Parents
Loading