Python: Ignore match-related inconsistencies

This commit is contained in:
Rasmus Wriedt Larsen
2024-03-01 14:15:32 +01:00
parent 5d212514c6
commit bcd5c08ebd
2 changed files with 9 additions and 51 deletions

View File

@@ -11,6 +11,15 @@ private module ConsistencyChecksInput implements ConsistencyChecksInputSig {
or
// TODO: when adding support for proper content, handle **kwargs passing better!
n instanceof DataFlowPrivate::SynthDictSplatArgumentNode
or
// TODO: when adding support for proper content, handle unpacking tuples in match
// cases better, such as
//
// match (NONSOURCE, SOURCE):
// case (x, y): ...
exists(DataFlow::Node m | m.asCfgNode().getNode() instanceof MatchCapturePattern |
TypeTrackingInput::simpleLocalSmallStep*(m, n)
)
}
}