Skip to content

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 14 Oct 11:50
· 4 commits to main since this release
32465ec

🔄 Changed

  • serialize_value serializes an Enum member by its value. A class Kind(int, Enum) member rendered as 'Kind.A', because an Enum mixin formats through Enum.__str__ since Python 3.11, and a plain Enum holding a datetime or a UUID raised NotImplementedError; both now render as their value would. A (str, Enum) member already worked and keeps working.
  • bytes and bytearray go to serialize_other_object, like any other type missing from the serialization table. They are collections of ints, so they used to render as (222, 173), a valid-looking literal with the wrong meaning. Override serialize_other_object to render them for your dialect.
  • Requires ddutils >= 0.3.0, < 0.4.0.

Full Changelog: v0.3.0...v0.3.1