Closed janosh closed 2 months ago
I have no issues with using a backport package for now.
@janosh, I believe your issues may have been addressed in #944.
thanks @Andrew-S-Rosen, good to know.
probably still makes sense to define a
class StrEnum(str, Enum)
to enforce string values certain enums in emmet
until oldest python supported is 3.11.
In case I missed something, @munrojm was there a reason not to use
enum.StrEnum
?I was seeing JSON serialization errors with the
atomate2
PhononMaker
'spydantic
model which don't occur withenum.StrEnum
.Update
Didn't realize
StrEnum
is 3.11+ only. We could use a backport package like https://github.com/irgeek/StrEnum.