now also encodesd sets

This commit is contained in:
=
2024-02-06 17:32:04 +01:00
parent 3e4288cd66
commit aa24653657

View File

@@ -6,4 +6,6 @@ class PolyCubeEncdoder(JSONEncoder):
def default(self, o: Any) -> Any:
if isinstance(o, PolyCube):
return list(o.cubes)
elif isinstance(o, set):
return list(o)
return super().default(o)