Files
openide/python/testData/inspections/PyGlobalUndefinedInspection/reassignedAndPresent.py
Aleksei Kniazevandintellij-monorepo-bot 61f435f185 IDEA-CR-51205: undefined global inspection should compare scopes of resolved targets (PY-37415)
I reverted changes in 235f566771e9bd83c5b04e47c170501830b5c66a and modified PyUndefinedGlobalInspection instead, to restore global variable discovery in Scope methods

GitOrigin-RevId: 6b432b2c2364cd94dc8463ea773a02350d9e915f
2019-08-29 13:27:53 +00:00

7 lines
73 B
Python

bar = "something"
def foo():
global bar
bar = "something else"