Skip to content

many bug in python-miio(list will be update) #2027

@CyberMan571

Description

@CyberMan571
        def wrap(self, ctx, func):
            gco = ctx.find_object(GlobalContextObject)
            if gco is not None and gco.output is not None:
                output_decorator = gco.output
            elif self.default_output:
                output_decorator = self.default_output
            else:
                output_decorator = format_output(f"Running command {self.command_name}")

            # Remove skip_autodetect before constructing the click.command
            self.kwargs.pop("skip_autodetect", None)

       
            for decorator in self.decorators:
                func = decorator(func)
                func = output_decorator(func)
            return click.command(self.command_name, **self.kwargs)(func)

click_common.py içindeki satırı bu şekilde değiştirince

Command.__init__() got an unexpected keyword argument 'default_output'
bu sorunu çözüldü

"The following issue was resolved by changing default_output=default_output to default_output=format_output: Command.init() got an unexpected keyword argument 'default_output'."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions