nemo_microservices._utils._reflection#

Module Contents#

Functions#

assert_signatures_in_sync

Ensure that the signature of the second function matches the first.

function_has_argument

Returns whether or not the given function has a specific parameter

API#

nemo_microservices._utils._reflection.assert_signatures_in_sync(
source_func: Callable[..., Any],
check_func: Callable[..., Any],
*,
exclude_params: set[str] = set(),
) None#

Ensure that the signature of the second function matches the first.

nemo_microservices._utils._reflection.function_has_argument(
func: Callable[..., Any],
arg_name: str,
) bool#

Returns whether or not the given function has a specific parameter