mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
Now nonlocal/global target expressions gets type from its original reference. GitOrigin-RevId: 2af93318bd0a1e978e9251e38ec2d6b218a021ed
12 lines
170 B
Python
12 lines
170 B
Python
my_global = []
|
|
|
|
|
|
def func():
|
|
global my_global
|
|
my_nonlocal = []
|
|
my_global.insert()
|
|
|
|
def inner():
|
|
nonlocal my_nonlocal
|
|
my_nonlocal.insert()
|