torch_ecg.utils.get_kwargs#

torch_ecg.utils.get_kwargs(func_or_cls: callable, kwonly: bool = False) Dict[str, Any][source]#

Get the kwargs of a function or class.

Parameters:
  • func_or_cls (callable) – The function or class to get the kwargs of.

  • kwonly (bool, default False) – Whether to get the kwonly kwargs of the function or class.

Returns:

kwargs – The kwargs of the function or class.

Return type:

Dict[str, Any]