neclib.core.normalization.function_defaults#

Aliases#

NotInitializedError

Error related to object initialization status.

class partial(func=None, /, *, args=(), kwargs=None)[source]#

Bases: object

Parameters:
  • func (Any) –

  • args (Tuple[Any, ...]) –

  • kwargs (Optional[Dict[str, Any]]) –

empty_parameters(args, kwargs, shift=0)[source]#
Parameters:
  • args (Tuple[Any, ...]) –

  • kwargs (Dict[str, Any]) –

  • shift (int) –

Return type:

List[str]

create_wrapper(shift=0)[source]#
Parameters:

shift (int) –

Return type:

Callable[[…], Any]

property signature: Signature#
parse_arguments(args=(), kwargs=None, fallback=False, shift=0)[source]#
Parameters:
  • args (Tuple[Any, ...]) –

  • kwargs (Optional[Dict[str, Any]]) –

  • fallback (bool) –

  • shift (int) –

Return type:

Dict[Union[str, int], Any]

merge_arguments(*args)[source]#

Merge arguments candidates.

Parameters:

args (Dict[Union[str, int], Any]) – The (args, kwargs) pairs to be merged. The pair appears later takes precedence, so the default value would be given as first argument.

Return type:

Tuple[Tuple[Any, …], Dict[str, Any]]