pymhf.core.functions module#

class pymhf.core.functions.ArgData(name, arg_type)#

Bases: NamedTuple

arg_type: _SimpleCData | Structure | _Pointer | _Pointer#

Alias for field number 1

name: str#

Alias for field number 0

class pymhf.core.functions.FuncDef(restype: Any, argtypes: list[ArgData], defaults: dict | None = None)#

Bases: object

property arg_names: list[str]#
property arg_types: list[_SimpleCData | Structure | _Pointer | _Pointer]#
flatten(*args, **kwargs)#

Take the provided signature, args and kwargs and convert to a single list of args.

to_FUNCDEF() FUNCDEF#