Python: getStarArg gives first *args argument

I couldn't see any reason that we should give up altogether if there are
multiple `*args` arguments. Including the first one looks like a win to
me!
This commit is contained in:
Rasmus Wriedt Larsen
2022-09-12 17:02:31 +02:00
parent 3384521fb6
commit 41ce1c2016
3 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* `getStarArg` member-predicate on `Call` and `CallNode` has been changed for calls that have multiple `*args` arguments (for example `func(42, *my_args, *other_args)`): Instead of producing no results, it will always have a result for the _first_ such `*args` argument.