INNER CODE UNIT · Python

MlemMixin

iterative/mlem · mlem/cli/main.py:69

class MlemMixin(Command):
    def __init__(
        self,
        *args,
        section: str = "other",
        aliases: List[str] = None,
        is_generated_from_ext: bool = False,
        **kwargs,
    ):
        super().__init__(*args, **kwargs)
        self.section = section
        self.aliases = aliases
        self.rich_help_panel = section.capitalize()
        self.is_generated_from_ext = is_generated_from_ext

    def collect_usage_pieces(self, ctx: Context) -> List[str]:
        return [p.lower() for p in super().collect_usage_pieces(ctx)]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…