Python: Fix test failure

Casting to `ImportExpr` caused the `typetracking_imports` test to fail.
This commit is contained in:
Taus
2022-11-11 16:03:14 +00:00
parent a08253b6d0
commit f92d836607

View File

@@ -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
)