blob: 079501022c642dbbd3f3966f16ca4ce9db84de54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# pylint: disable=missing-docstring, pointless-statement, global-variable-not-assigned, global-statement
CONST = 1
def test():
CONST # [used-prior-global-declaration]
global CONST
def other_test():
CONST
global SOMETHING
def other_test_1():
global SOMETHING
CONST
def other_test_2():
CONST
def inner():
global CONST
return inner
def other_test_3():
def inner():
return CONST
global CONST
return inner
|