Skip to content
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

Small refactor of color utils for readibility and type checkability #55

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

gabalafou
Copy link
Contributor

@gabalafou gabalafou commented Apr 17, 2024

Obviate the need for type checker assertions.

@gabalafou gabalafou requested a review from Carreau April 17, 2024 21:47
Copy link

PR Preview Action v1.2.0
🚀 Deployed preview to https://Quansight-Labs.github.io/accessible-pygments/pr-preview/pr-55/
on branch gh-pages at 2024-04-17 21:47 UTC

Copy link
Collaborator

@Carreau Carreau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Just not a fan of the name as xx seem like a placeholder, but I don't have better.

I'm wondering if we could have float01 as class and xx_01 as a staticmethod and rename it as from_float(...), not sure how that works with with type checker, and from what I can't tell from the python docs.

@Carreau Carreau merged commit f52b1f4 into main Apr 18, 2024
6 checks passed
@Carreau Carreau deleted the type-checker-tweaks branch April 18, 2024 10:23
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

Successfully merging this pull request may close these issues.

2 participants