We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 266dc7e + 8a98bb1 commit a3f3f37Copy full SHA for a3f3f37
reporting.py
@@ -33,6 +33,8 @@ def to_json_serializable(o):
33
return tuple(to_json_serializable(i) for i in o)
34
if isinstance(o, list):
35
return [to_json_serializable(i) for i in o]
36
+ if callable(o):
37
+ return repr(o)
38
39
# Ensure everything is JSON serializable. If this warning is issued, it
40
# means the given type needs to be added above if possible.
0 commit comments