mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Fix broken test of global typetracker flow
The missing `global g` annotation meant `g = x` was interpreted as a local assignment.
This commit is contained in:
@@ -38,6 +38,7 @@ def quux():
|
||||
g = None
|
||||
|
||||
def write_g(x): # $tracked
|
||||
global g
|
||||
g = x # $tracked
|
||||
|
||||
def use_g():
|
||||
|
||||
Reference in New Issue
Block a user