register
#
Utilities for registering functions.
Functions:
-
get_registry_decorator–Get a decorator to register functions in a given registry.
get_registry_decorator
#
get_registry_decorator(
registry: dict[Any, Any],
) -> Callable[[Any], Callable[[FnTypeVar], FnTypeVar]]
Get a decorator to register functions in a given registry.
Parameters:
-
registry(dict) –The registry to register functions in.
Returns:
-
Callable[[Any], Callable[[FnTypeVar], FnTypeVar]]–A decorator to register functions in the registry.