Skip to content

Commit 739b839

Browse files
committed
Python: use updated names
1 parent b07316f commit 739b839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ private module Input implements InputSig<PythonDataFlow> {
4343
predicate uniqueEnclosingCallableExclude(Node n) {
4444
// `CaptureNode`s miss enclosing calables in some cases.
4545
exists(Function func |
46-
func = n.(CaptureNode).getSynthesizedCaptureNode().getEnclosingCallable()
46+
func = n.(SynthCaptureNode).getSynthesizedCaptureNode().getEnclosingCallable()
4747
|
4848
// This can happen if `func` is a comprehension.
4949
// In that case, there is no associated DataFlowCallable.
5050
not exists(func.getDefinition())
5151
)
5252
or
5353
// We do not have classes as `DataFlowCallable`s.
54-
n.(CaptureNode).getSynthesizedCaptureNode().getEnclosingCallable() instanceof Class
54+
n.(SynthCaptureNode).getSynthesizedCaptureNode().getEnclosingCallable() instanceof Class
5555
}
5656

5757
predicate uniqueCallEnclosingCallableExclude(DataFlowCall call) {

0 commit comments

Comments
 (0)