Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hx2A opened this issue Mar 8, 2025 · 0 comments

Comments

@hx2A
Copy link
Collaborator

hx2A commented Mar 8, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant