mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Python: Show TypeTracking doesn't work for module members
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
x = tracked # $tracked
|
||||
|
||||
def func():
|
||||
return tracked # $tracked
|
||||
@@ -49,6 +49,14 @@ def global_var_write_test():
|
||||
write_g(x) # $tracked
|
||||
use_g()
|
||||
|
||||
def test_import():
|
||||
import mymodule
|
||||
mymodule.x # $f-:tracked
|
||||
y = mymodule.func() # $tracked
|
||||
y # $tracked
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
def expects_int(x): # $int
|
||||
do_int_stuff(x) # $int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user