API
init
def __init__(
self, /, name: str, *, extra_field: Optional[Union[str, Sequence[str]]] = None
) -> None
register_module
def register_module(
self,
module: Union[Callable, ModuleType],
force: bool = False,
_is_str: bool = False,
**extra_info,
) -> Union[Callable, ModuleType]:
Register a module, but also can register a class or function.
register
def register(self, force: bool = False, **extra_info) -> Callable