Skip to content

Commit 5471c92

Browse files
committed
Python: exclusion for summary nodes
as in Ruby
1 parent 061fd01 commit 5471c92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ql/consistency-queries/DataFlowConsistency.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ private module Input implements InputSig<PythonDataFlow> {
1414
private import Private
1515
private import Public
1616

17+
predicate postWithInFlowExclude(Node n) { n instanceof FlowSummaryNode }
18+
1719
predicate argHasPostUpdateExclude(ArgumentNode n) {
1820
// TODO: Implement post-updates for *args, see tests added in https://github.com/github/codeql/pull/14936
1921
exists(ArgumentPosition apos | n.argumentOf(_, apos) and apos.isStarArgs(_))

0 commit comments

Comments
 (0)