Skip to content

Enum serialization broken #64

Open
@laugengebaeck

Description

@laugengebaeck

If I try to call to_json() on a Signal object, I get the following error:

TypeError: Object of type SignalSystem is not JSON serializable

This seems to be because the JSON library does not know how to serialize enums if they do not inherit from str or int.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions