Merge pull request #4524 from tausbn/python-remove-cartesian-product-in-tkwoverflownode

Python: Remove cartesian product in `TKwOverflowNode`
This commit is contained in:
Rasmus Wriedt Larsen
2020-10-21 10:22:45 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -292,7 +292,7 @@ private Node update(Node node) {
* `y`. There is a dataflow step from `**{"y": 1, "a": 3}` to `[**d]` to transfer the content and
* a clearing of content at key `y` for node `[**d]`, since that value has been unpacked.
*/
private module ArgumentPassing {
module ArgumentPassing {
/**
* Holds if `call` represents a `DataFlowCall` to a `DataFlowCallable` represented by `callable`.
*

View File

@@ -49,6 +49,7 @@ newtype TNode =
TKwOverflowNode(CallNode call, CallableValue callable) {
exists(getKeywordOverflowArg(call, callable, _))
or
ArgumentPassing::connects(call, callable) and
exists(call.getNode().getKwargs()) and
callable.getScope().hasKwArg()
} or