mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-23 17:40:02 +02:00
updates Enum serialization
This commit is contained in:
parent
3e1517e905
commit
300bd6ca9a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user