Skip to content

Expand type hints to include optional dependencies such as colour or named colors #619

Description

@hx2A

Ref: #618

Color parameters support colour.Color objects and also named colors. Can py5generator be expanded to include these in the type hints?

This would need to work if the optional libraries are not installed.

py5generator's CodeBuilder class would need to know to build extra type hints.

A good solution would also work for py5's shapely and trimesh integrations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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