Unbound local variables
Reports local variables referenced before assignment.
Example:
x = 0
if x > 10:
b = 3
print(b)
The IDE reports a problem for print(b)
. A possible fix is:
x = 0
if x > 10:
b = 3
print(b)
Inspection Details | |
---|---|
Available in: | DataSpell 2023.3, PyCharm 2023.3 |
Plugin: | Python Community Edition, 233.SNAPSHOT |
Last modified: 13 July 2023