Skip to content

Commit bcd5c08

Browse files
committed
Python: Ignore match-related inconsistencies
1 parent 5d21251 commit bcd5c08

File tree

2 files changed

+9
-51
lines changed

2 files changed

+9
-51
lines changed

python/ql/consistency-queries/TypeTrackingConsistency.ql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ private module ConsistencyChecksInput implements ConsistencyChecksInputSig {
1111
or
1212
// TODO: when adding support for proper content, handle **kwargs passing better!
1313
n instanceof DataFlowPrivate::SynthDictSplatArgumentNode
14+
or
15+
// TODO: when adding support for proper content, handle unpacking tuples in match
16+
// cases better, such as
17+
//
18+
// match (NONSOURCE, SOURCE):
19+
// case (x, y): ...
20+
exists(DataFlow::Node m | m.asCfgNode().getNode() instanceof MatchCapturePattern |
21+
TypeTrackingInput::simpleLocalSmallStep*(m, n)
22+
)
1423
}
1524
}
1625

python/ql/test/experimental/dataflow/match/CONSISTENCY/TypeTrackingConsistency.expected

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)