We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c3994b commit 66cba89Copy full SHA for 66cba89
python/ql/lib/semmle/python/frameworks/Torch.qll
@@ -21,7 +21,7 @@ private module Torch {
21
22
override predicate mayExecuteInput() {
23
not exists(this.getParameter(2, "pickle_module").asSink()) or
24
- exists(this.getParameter(2, "pickle_module").asSink().asExpr().(None))
+ this.getParameter(2, "pickle_module").asSink().asExpr() instanceof None
25
}
26
27
override DataFlow::Node getAnInput() { result = this.getParameter(0, "f").asSink() }
0 commit comments