mbrs.registry module#
- class mbrs.registry.Registry(base_type: type[T])[source]#
-
Registry that maps a name to its corresponding type.
- get_closure() tuple[Callable[[str], Callable[[type[T]], type[T]]], Callable[[str], type[T]]][source]#
Get closure functions: register() and get_cls().
- Returns:
Callable[[str], Callable[[type[T]], type[T]]]: register() function.
Callable[[str], type[T]]: get_cls() function.
- Return type: