mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Python: Fix test failure
Casting to `ImportExpr` caused the `typetracking_imports` test to fail.
This commit is contained in:
@@ -80,7 +80,7 @@ module ImportResolution {
|
||||
)
|
||||
or
|
||||
exists(Alias a |
|
||||
defn.asExpr() = [a.getValue().(ImportExpr), a.getValue().(ImportMember).getModule()] and
|
||||
defn.asExpr() = [a.getValue(), a.getValue().(ImportMember).getModule()] and
|
||||
a.getAsname().(Name).getId() = name and
|
||||
defn.getScope() = m
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user