CodeQL library for Python
codeql/python-all 4.0.7 (changelog, source)
Search

Member predicate Function::getMaxPositionalArguments

Gets the maximum number of positional arguments that can be correctly passed to this function.

If the function has a *vararg parameter, there is no upper limit on the number of positional arguments that can be passed to the function. In this case, this method returns a very large number (currently INT_MAX, 2147483647, but this may change in the future).

int getMaxPositionalArguments()