Skip to content

Commit 59a616c

Browse files
committed
More linter fixes
1 parent b6eadcc commit 59a616c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

python-namespace/scopes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
global_variable = "global"
2+
3+
24
def outer_func():
35
# Nonlocal scope
46
nonlocal_variable = "nonlocal"
7+
58
def inner_func():
69
# Local scope
710
local_variable = "local"
811
print(f"Hi from the '{local_variable}' scope!")
912
print(f"Hi from the '{nonlocal_variable}' scope!")
1013
print(f"Hi from the '{global_variable}' scope!")
14+
1115
inner_func()
1216

17+
1318
outer_func()

0 commit comments

Comments
 (0)