Utilities, Errors and Constants

hoft.core.utils.IGNORE = None

Use this to tell hoft to ignore a function argument when analysing it.

hoft.core.utils.NOVALUE = <object object>

A special value to indicate that no value was passed to the function for a keyword argument.

exception hoft.core.utils.ArgsNotAnalysedError(names)[source]

One or more arguments were not analysed (when strict=True).

__init__(names)[source]
Parameters:names (List[str]) – Arguments not analysed (in declared order).
exception hoft.core.utils.NoDefaultError(name, argspec)[source]

No default value is provided for this argument.

__init__(name, argspec)[source]
Parameters:
  • name (str) – Name of the argument
  • argspec (inspect.ArgSpec) – Existing argspec.