Quansight-Labs / accessible-pygments

♿ Accessible pygments themes
https://quansight-labs.github.io/accessible-pygments/
BSD 3-Clause "New" or "Revised" License
12 stars 5 forks source link

Turn all Colors into StrEnum, #54

Closed Carreau closed 2 weeks ago

Carreau commented 5 months ago

This make a few things a bit easier, like looping through variants, and also should be a bit stricter on types.

Carreau commented 5 months ago

Hum, StrEnum is only 3.11+. I'm not sure what to do. I guess we can still make it "just" an enum on earlier Versions.

trallard commented 3 months ago

I only saw this @Carreau could we not use future like from __future__ import StrEnum to go around this?

Carreau commented 3 months ago

We could use https://pypi.org/project/StrEnum/, but I don't think it's worth adding a dep just for this.

trallard commented 3 months ago

Yeah so maybe a simple enum would be good then