Skip to content

Version 1.1.0

Compare
Choose a tag to compare
@CCP-Zeulix CCP-Zeulix released this 08 Apr 11:46
· 2 commits to main since this release
8ce6e65

Version 1.1.0 - Enum Extras

[1.1.0] - 2024-04-08

Added

  • a new enum_eval method that turns any reasonable value into an instance
    of the supplied Enum class (i.e. string names or ints or whatever).
  • a new enum base class, EnumEx that extends enum.Enum by adding a
    from_any class method that uses enum_eval to initialize a new instance
    of whatever class extends EnumEx from any sensible value
  • the new EnumEx class to the base ccptools.structs import