Skip to content

Commit 2c10160

Browse files
committed
Python: Highlight we actually want post-update nodes for *args and **kwargs arguments
1 parent 02f2031 commit 2c10160

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
@@ -15,8 +15,10 @@ private module Input implements InputSig<PythonDataFlow> {
1515
private import Public
1616

1717
predicate argHasPostUpdateExclude(ArgumentNode n) {
18+
// TODO: Implement post-updates for *args, see tests added in https://github.com/github/codeql/pull/14936
1819
exists(ArgumentPosition apos | n.argumentOf(_, apos) and apos.isStarArgs(_))
1920
or
21+
// TODO: Implement post-updates for **kwargs, see tests added in https://github.com/github/codeql/pull/14936
2022
exists(ArgumentPosition apos | n.argumentOf(_, apos) and apos.isDictSplat())
2123
}
2224

0 commit comments

Comments
 (0)