Closed
Description
Bug description
def func(): ...
y = {
0: x if (x := func()) else "",
}
Configuration
No response
Command used
pylint test.py
Pylint output
test.py:3:7: E0601: Using variable 'x' before assignment (used-before-assignment)
Expected behavior
No error
Pylint version
pylint 2.16.0b1
astroid 2.14.0-dev0
Python 3.11.1
OS / Environment
No response
Additional dependencies
No response