@classmethod
def get_function_args(cls, func):
    """Returns pairs (arg, default) for each argument of func, in declaration order.

        Ignores *args, **kwargs. Ignores self for methods.
        """
    return list(cls._get_function_args(func))
