used-before-assignment false positive when walrus / assignment expression assigned and used in same expression #3953
Labels
Assignment expression
Related to the walrus operator / assignment expression
Bug 🪲
False Positive 🦟
A message is emitted but nothing is wrong with the code
Similar to #3249
Steps to reproduce
assert (n := len(stuff)) == 123, f"Expected length 123, but got {n}"
pylint
Current behavior
Expected behavior
Pass.
pylint --version output
v2.6.0
The text was updated successfully, but these errors were encountered: