Pylance reports reportUnboundVariable when using walrus operator with conditional expressions and no brackets #381
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
The following snippet leads to a reportUnboundVariable on the
items
variable used in thefor
statementThe following snippets do not generate any reports
Actual behaviour
Usiing the walrus operator with a conditional expression which is not enclosed in parentheses leads to a reportUnboundVariable report
Code Snippet / Additional information
The text was updated successfully, but these errors were encountered: