Skip to main content

arity_greater

Determines if a function's arity is greater than a specified value by checking its argument count and the presence of variable arguments.

def arity_greater(
fun: callable,
n: integer
) - > boolean

Determines if a function can accept more than a specified number of positional arguments by checking its signature and variable argument support.

Parameters

NameTypeDescription
funcallableThe function or callable object whose signature is being inspected.
nintegerThe threshold count of positional arguments to compare against the function's arity.

Returns

TypeDescription
booleanTrue if the function has a variable arguments collector (*args) or if its fixed positional argument count exceeds n; otherwise False.