Skip to content

Using named tuples #22

Closed
Closed
@pradyunsg

Description

@pradyunsg

Currently, All attributes and methods of Color return tuples or strings. It should be relatively simple to return namedtuples instead of simple tuples.

Why?
Namedtuple makes your tuples _self-document. You can easily understand what is going on by having a quick glance at your code._1

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