We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 077ecb1 commit b22a75fCopy full SHA for b22a75f
template/startup_scripts/0002_data.py
@@ -54,9 +54,15 @@ def __call__(self, obj):
54
# so it can't be used in type_printers or with top-level import
55
56
if isinstance(obj, dict):
57
- return obj, {"expanded": True}
+ return orjson.loads(orjson.dumps(obj, option=orjson.OPT_SERIALIZE_NUMPY)), {
58
+ "expanded": True
59
+ }
60
+
61
if isinstance(obj, list):
62
63
64
65
66
return super().__call__(obj)
67
68
0 commit comments