Skip to content

Commit f92d836

Browse files
committed
Python: Fix test failure
Casting to `ImportExpr` caused the `typetracking_imports` test to fail.
1 parent a08253b commit f92d836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/ImportResolution.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module ImportResolution {
8080
)
8181
or
8282
exists(Alias a |
83-
defn.asExpr() = [a.getValue().(ImportExpr), a.getValue().(ImportMember).getModule()] and
83+
defn.asExpr() = [a.getValue(), a.getValue().(ImportMember).getModule()] and
8484
a.getAsname().(Name).getId() = name and
8585
defn.getScope() = m
8686
)

0 commit comments

Comments
 (0)