hexrec.utils.check_empty_args_kwargs#

hexrec.utils.check_empty_args_kwargs(args, kwargs)[source]#

Checks for empty positional and keyword arguments.

Both args and kwargs must be either None or equivalent to False. If the check is not satisfied, a ValueError exception is raised.

Parameters:
  • args (list) – List of unexpected positional arguments, or Null.

  • kwargs (dict) – List of unexpected keyword arguments, or Null.

Raises:

ValueError – Condition not satisfied.