Skip to content

Commit f5654c9

Browse files
Psycojokerhoh
authored andcommitted
feat: add return type to aleph.vm.utils.to_json
1 parent 5518086 commit f5654c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aleph/vm/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def get_ref_from_dns(domain):
6969
return record[0].text
7070

7171

72-
def to_json(o: Any):
72+
def to_json(o: Any) -> dict | str:
7373
if hasattr(o, "to_dict"): # default method
7474
return o.to_dict()
7575
elif hasattr(o, "dict"): # Pydantic

0 commit comments

Comments
 (0)