ruff/crates/ruff_linter/resources/test/fixtures/pyflakes/F821_6.py

18 lines
107 B
Python

"""Test: annotated global."""
n: int
def f():
print(n)
def g():
global n
n = 1
g()
f()