Files
openide/python/testData/inspections/PyGlobalUndefinedInspection/sameNameMiddleTrueNegative.py
Mikhail Khorkovandintellij-monorepo-bot aada2d1238 PY-37755 Add type inference for nonlocal/global variables
Now nonlocal/global target expressions gets type from its original reference.

GitOrigin-RevId: 2af93318bd0a1e978e9251e38ec2d6b218a021ed
2020-02-05 11:32:10 +00:00

9 lines
88 B
Python

x = [1]
def fun():
x = False
def fun2():
global x
x.append(2)