We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 398bcdc commit 848eb1bCopy full SHA for 848eb1b
1 file changed
btrdb/utils/conversion.py
@@ -57,6 +57,10 @@ def default(self, obj):
57
# https://numpy.org/devdocs/reference/arrays.datetime.html#changes-with-numpy-1-11
58
return pytz.utc.localize(obj.astype(datetime)).strftime(RFC3339)
59
60
+ # handle sets and frozensets
61
+ if isinstance(obj, (set, frozenset)):
62
+ return list(obj)
63
+
64
# Let the base class default method raise the TypeError
65
return json.JSONEncoder.default(self, obj)
66
0 commit comments