INNER CODE UNIT · Python

invoke

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

    def invoke(self, ctx: Context) -> Any:
        ctx.params = {k: v for k, v in ctx.params.items() if v != NOT_SET}
        return super().invoke(ctx)

    def get_params(self, ctx) -> List["Parameter"]:
        regular_options = super().get_params(ctx)
        res: List[Parameter] = (
            list(
                self.dynamic_options_generator(
                    CallContext(
                        ctx.params,
                        get_extra_keys(ctx.args),
                        [o.name for o in regular_options],
                    )
                )
            )
            if self.dynamic_options_generator is not None
            else []

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…