Skip to content

Console.print() got an unexpected keyword argument 'style' #14

@jesse-ivers

Description

@jesse-ivers

lkml2cube.parser.types defines a Console class as a thin wrapper around print that is supposed to be compatible with rich.console, however when the 'style' kwarg is passed, rich.console would work, but the wrapper does not. This is an easy fix by either removing the wrapper class and using rich or adding **kwargs to the wrapper's print method.

I'd be happy to open a PR fixing it, but it's unclear what the original intent of the wrapper class was, so moving back to rich may be undesired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions