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.
super().foo
1 parent 4a98ed9 commit 02f2031Copy full SHA for 02f2031
python/ql/consistency-queries/DataFlowConsistency.ql
@@ -111,10 +111,12 @@ private module Input implements InputSig<PythonDataFlow> {
111
or
112
// in the code `def func(self): super().foo(); super.bar()` we use `self` as the
113
// (pos self) argument in both .foo() and .bar() calls.
114
- exists(Function f |
+ exists(Function f, DataFlowCall other | other != call |
115
exprNode(f.getArg(0)) = arg and
116
call.getNode().getScope() = f and
117
- arg = call.getArgument(any(ArgumentPosition p | p.isSelf()))
+ arg = call.getArgument(any(ArgumentPosition p | p.isSelf())) and
118
+ arg = other.getArgument(any(ArgumentPosition p | p.isSelf())) and
119
+ other.getNode().getScope() = f
120
)
121
}
122
0 commit comments