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.
getNumArgument
1 parent 204e01f commit b6a4f43Copy full SHA for b6a4f43
python/ql/lib/semmle/python/ApiGraphs.qll
@@ -355,7 +355,12 @@ module API {
355
result.getAnImmediateUse() = this
356
}
357
358
- /** Gets the number of arguments of this call. Both positional and named arguments are counted. */
+ /**
359
+ * Gets the number of positional arguments of this call.
360
+ *
361
+ * Note: This is used for `WithArity[<n>]` in modeling-as-data, where we thought
362
+ * including keyword arguments didn't make much sense.
363
+ */
364
int getNumArgument() { result = count(this.getArg(_)) }
365
366
0 commit comments