Python: Remove synth postupdate nodes from tt-consistency

This commit is contained in:
Rasmus Wriedt Larsen
2024-03-01 10:23:50 +01:00
parent 9f01ea68f7
commit bbe8c6dcaa
2 changed files with 2 additions and 48 deletions

View File

@@ -6,6 +6,8 @@ private import semmle.python.dataflow.new.internal.TypeTrackingImpl
private module ConsistencyChecksInput implements ConsistencyChecksInputSig {
predicate unreachableNodeExclude(DataFlow::Node n) {
not exists(n.getLocation().getFile().getRelativePath())
or
n instanceof DataFlowPrivate::SyntheticPostUpdateNode
}
}