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 f8e562c commit 3dca2adCopy full SHA for 3dca2ad
reporting.py
@@ -13,7 +13,7 @@
13
def to_json_serializable(o):
14
if o in dtype_to_name:
15
return dtype_to_name[o]
16
- if isinstance(o, (BuiltinFunctionType, FunctionType)):
+ if isinstance(o, (BuiltinFunctionType, FunctionType, type)):
17
return o.__name__
18
if dataclasses.is_dataclass(o):
19
return to_json_serializable(dataclasses.asdict(o))
0 commit comments