mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
Python: Handle dict unpacking in calls
Co-authored-by: yoff <yoff@github.com>
This commit is contained in:
@@ -364,6 +364,8 @@ private module Ast {
|
||||
|
||||
ExprNode getKeywordValue(int n) {
|
||||
result.asExpr() = call.getNamedArg(n).(Py::Keyword).getValue()
|
||||
or
|
||||
result.asExpr() = call.getNamedArg(n).(Py::DictUnpacking).getValue()
|
||||
}
|
||||
|
||||
int getNumberOfNamedArgs() { result = count(call.getANamedArg()) }
|
||||
|
||||
Reference in New Issue
Block a user