INNER CODE UNIT · Python
__init__
iterative/mlem · mlem/cli/main.py:342
def __init__(self, *args, **kwargs):
super().__init__(
*args,
section=section,
aliases=aliases,
is_generated_from_ext=is_generated_from_ext,
**kwargs,
)
return MlemGroupSection
def mlem_group_callback(group: Typer, required: Optional[List[str]] = None):
def decorator(f):
@wraps(f)
def inner(*args, **kwargs):
ctx = click.get_current_context()
if ctx.invoked_subcommand is not None: