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 5518086 commit f5654c9Copy full SHA for f5654c9
src/aleph/vm/utils/__init__.py
@@ -69,7 +69,7 @@ async def get_ref_from_dns(domain):
69
return record[0].text
70
71
72
-def to_json(o: Any):
+def to_json(o: Any) -> dict | str:
73
if hasattr(o, "to_dict"): # default method
74
return o.to_dict()
75
elif hasattr(o, "dict"): # Pydantic
0 commit comments