Debian Codegraph @

tests/syntax/assign_name_before_nonlocal_2.py

raw symbols SCIP
1 """Should raise SyntaxError: name 's' is assigned to before nonlocal declaration """
2
3
4 def f():
5 s = 1
6
7 def g():
8 s = 2
9 nonlocal s