We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4c0a03 + dda29e9 commit a45a0eeCopy full SHA for a45a0ee
python/ql/test/experimental/dataflow/coverage/argumentPassing.py
@@ -204,6 +204,18 @@ def test_mixed():
204
mixed(**args)
205
206
207
+def kwargs_same_name_as_positional_only(a, /, **kwargs):
208
+ SINK1(a)
209
+ SINK2(kwargs["a"])
210
+
211
+@expects(2*2)
212
+def test_kwargs_same_name_as_positional_only():
213
+ kwargs_same_name_as_positional_only(arg1, a=arg2) # $ arg1 SPURIOUS: bad1="arg2" MISSING: arg2
214
215
+ kwargs = {"a": arg2} # $ func=kwargs_same_name_as_positional_only SPURIOUS: bad1="arg2" MISSING: arg2
216
+ kwargs_same_name_as_positional_only(arg1, **kwargs) # $ arg1
217
218
219
def starargs_only(*args):
220
SINK1(args[0])
221
SINK2(args[1])
0 commit comments