Python: Ignore IterableSequenceNode inconsistencies

This commit is contained in:
Rasmus Wriedt Larsen
2024-03-01 14:22:18 +01:00
parent 7e3e5db3db
commit 7c60562132
2 changed files with 4 additions and 18 deletions

View File

@@ -20,6 +20,10 @@ private module ConsistencyChecksInput implements ConsistencyChecksInputSig {
exists(DataFlow::Node m | m.asCfgNode().getNode() instanceof MatchCapturePattern |
TypeTrackingInput::simpleLocalSmallStep*(m, n)
)
or
// TODO: when adding support for proper content, handle iterable unpacking better
// such as `for k,v in items:`, or `a, (b,c) = ...`
n instanceof DataFlow::IterableSequenceNode
}
}