Module Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return Str orelse Return BinOpMod Str Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BoolOpOr AttributeLoad NameLoad attr ListLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice BinOpSub Call NameLoad AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Return CompareIsNot Call NameLoad NameLoad Str NameLoad NameLoad decorator_list If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareNotIn NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad NameLoad If NameLoad body Raise Call NameLoad NameLoad decorator_list
N/A N/A inspect MissingArgs N/A Exception N/A __init__ N/A N/A self missing N/A N/A N/A N/A self missing missing N/A __str__ N/A N/A self N/A N/A N/A N/A N/A len N/A self missing 1 N/A N/A An argument is missing N/A N/A N/A %(num)d arguments are missing N/A dict num N/A len N/A self missing N/A N/A validate_args N/A N/A fn N/A args kwargs N/A N/A Check that the supplied args are sufficient for calling a function.

    >>> validate_args(lambda a: None)
    Traceback (most recent call last):
        ...
    MissingArgs: An argument is missing
    >>> validate_args(lambda a, b, c, d: None, 0, c=1)
    Traceback (most recent call last):
        ...
    MissingArgs: 2 arguments are missing

    :param fn: the function to check
    :param arg: the positional arguments supplied
    :param kwargs: the keyword arguments supplied
     N/A argspec N/A N/A inspect getargspec fn N/A num_defaults N/A len N/A N/A argspec defaults N/A N/A required_args N/A N/A argspec args N/A N/A N/A len N/A argspec args num_defaults isbound N/A N/A method N/A N/A N/A N/A N/A getattr method im_self None None N/A N/A N/A isbound fn N/A N/A N/A N/A required_args pop 0 N/A missing N/A arg N/A arg required_args N/A arg kwargs N/A missing N/A missing N/A N/A len args N/A missing N/A N/A N/A MissingArgs missing N/A