gnn_tracking.utils.signature#

Functions#

get_all_argument_names(→ list[str])

Return all argument names of function

remove_irrelevant_arguments(→ dict[str, Any])

Remove all keys from kwargs that are not a named argument for

tolerate_additional_kwargs(→ Callable)

A decorator to make a function accept (and ignore) additional keyword

Module Contents#

gnn_tracking.utils.signature.get_all_argument_names(func: Callable) list[str]#

Return all argument names of function

gnn_tracking.utils.signature.remove_irrelevant_arguments(func: Callable, kwargs: dict[str, Any]) dict[str, Any]#

Remove all keys from kwargs that are not a named argument for func.

gnn_tracking.utils.signature.tolerate_additional_kwargs(func: Callable) Callable#

A decorator to make a function accept (and ignore) additional keyword arguments.