Skip to content

Commit e894ad4

Browse files
committed
Add type annotations to json module
1 parent ab8127a commit e894ad4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

monic/runtime/json.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66

77
import json
8+
import typing as t
89

910
from monic.expressions.registry import monic_bind_default
1011

1112

1213
@monic_bind_default("json.dumps")
13-
def json_dumps(obj, *args, **kwargs):
14+
def json_dumps(obj, *args, **kwargs) -> str:
1415
return json.dumps(obj, *args, **kwargs)
1516

1617

1718
@monic_bind_default("json.loads")
18-
def json_loads(s, *args, **kwargs):
19+
def json_loads(s, *args, **kwargs) -> t.Any:
1920
return json.loads(s, *args, **kwargs)

0 commit comments

Comments
 (0)