updates Enum serialization

This commit is contained in:
Mose Müller 2024-01-16 13:37:39 +01:00
parent 3e1517e905
commit 300bd6ca9a

View File

@ -67,7 +67,7 @@ class Serializer:
def _serialize_enum(obj: Enum) -> dict[str, Any]:
value = obj.name
readonly = False
doc = get_attribute_doc(obj)
doc = obj.__doc__
if type(obj).__base__.__name__ == "ColouredEnum":
obj_type = "ColouredEnum"
else: