Skip to content

Commit

Permalink
Python: Ignore consistency failure
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusWL committed Mar 1, 2024
1 parent 2f8bdfd commit e9c5197
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions python/ql/consistency-queries/TypeTrackingConsistency.ql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ private module ConsistencyChecksInput implements ConsistencyChecksInputSig {
n instanceof DataFlowPrivate::SyntheticPostUpdateNode
or
n instanceof DataFlowPrivate::SyntheticPreUpdateNode
or
// for iterable unpacking like `a,b = some_list`, we currently don't want to allow
// type-tracking... however, in the future when we allow tracking list indexes
// precisely (that is, move away from ListElementContent), we should ensure we have
// proper flow to the synthetic `IterableElementNode`.
exists(DataFlow::ListElementContent c) and
n instanceof DataFlow::IterableElementNode
}
}

Expand Down

This file was deleted.

0 comments on commit e9c5197

Please sign in to comment.