Skip to content

Refacto command.py to have a proper class Command #253

@benjvmin93

Description

@benjvmin93

Is your feature request related to a problem? Please describe.
Right now, there is a class _KindChecker that ensures the existence of a kind attribute for the commands. This class is not suited to implement class methods for the commands.

Describe the feature you'd like
It may be better to have a proper class Command that could inherit from _KindChecker in order to keep ensuring the kind attribute are setted. This class will be useful to put methods related to converting commands into latex, ascii or unicode string representations.

Additional context
This issue is related to PR#245 and follows the discussion on turning the functions for drawing commands into class methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions