Skip to content

Commit 3dca2ad

Browse files
committed
Allow classes to be JSON serialized in the JSON report
1 parent f8e562c commit 3dca2ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reporting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
def to_json_serializable(o):
1414
if o in dtype_to_name:
1515
return dtype_to_name[o]
16-
if isinstance(o, (BuiltinFunctionType, FunctionType)):
16+
if isinstance(o, (BuiltinFunctionType, FunctionType, type)):
1717
return o.__name__
1818
if dataclasses.is_dataclass(o):
1919
return to_json_serializable(dataclasses.asdict(o))

0 commit comments

Comments
 (0)