Skip to content

Commit b6a4f43

Browse files
erik-kroghRasmusWL
andauthored
expand qldoc for getNumArgument
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 204e01f commit b6a4f43

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

python/ql/lib/semmle/python/ApiGraphs.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,12 @@ module API {
355355
result.getAnImmediateUse() = this
356356
}
357357

358-
/** Gets the number of arguments of this call. Both positional and named arguments are counted. */
358+
/**
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+
*/
359364
int getNumArgument() { result = count(this.getArg(_)) }
360365
}
361366

0 commit comments

Comments
 (0)