mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Python: Highlight we actually want post-update nodes for *args and **kwargs arguments
This commit is contained in:
@@ -15,8 +15,10 @@ private module Input implements InputSig<PythonDataFlow> {
|
|||||||
private import Public
|
private import Public
|
||||||
|
|
||||||
predicate argHasPostUpdateExclude(ArgumentNode n) {
|
predicate argHasPostUpdateExclude(ArgumentNode n) {
|
||||||
|
// TODO: Implement post-updates for *args, see tests added in https://github.com/github/codeql/pull/14936
|
||||||
exists(ArgumentPosition apos | n.argumentOf(_, apos) and apos.isStarArgs(_))
|
exists(ArgumentPosition apos | n.argumentOf(_, apos) and apos.isStarArgs(_))
|
||||||
or
|
or
|
||||||
|
// TODO: Implement post-updates for **kwargs, see tests added in https://github.com/github/codeql/pull/14936
|
||||||
exists(ArgumentPosition apos | n.argumentOf(_, apos) and apos.isDictSplat())
|
exists(ArgumentPosition apos | n.argumentOf(_, apos) and apos.isDictSplat())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user