Skip to content

suggestion for improvement: refactor imports of constants across the modules #45

@MyPyDavid

Description

@MyPyDavid

It is not really good practice to use import *, in places where you don't specifically need it, https://peps.python.org/pep-0008/#imports

You don't need to import each key/value pair as a single variable from each module everywhere, I would suggest to refactor those in a type of Python data structure. It can be a simple dict, but also a dataclass https://docs.python.org/3.10/library/dataclasses.html?highlight=dataclasses or enum https://docs.python.org/3.10/library/enum.html?highlight=strenum

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