Skip to content

Commit 6e61983

Browse files
authored
Fix float_mode default value in from_json() stub definition (#199)
1 parent 8b9f0a3 commit 6e61983

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/jiter-python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def from_json(
1818
cache_mode: Literal[True, False, "all", "keys", "none"] = "all",
1919
partial_mode: Literal[True, False, "off", "on", "trailing-strings"] = False,
2020
catch_duplicate_keys: bool = False,
21-
float_mode: Literal["float", "decimal", "lossless-float"] = False,
21+
float_mode: Literal["float", "decimal", "lossless-float"] = "float",
2222
) -> Any:
2323
"""
2424
Parse input bytes into a JSON object.

crates/jiter-python/jiter.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def from_json(
99
cache_mode: Literal[True, False, "all", "keys", "none"] = "all",
1010
partial_mode: Literal[True, False, "off", "on", "trailing-strings"] = False,
1111
catch_duplicate_keys: bool = False,
12-
float_mode: Literal["float", "decimal", "lossless-float"] = False,
12+
float_mode: Literal["float", "decimal", "lossless-float"] = "float",
1313
) -> Any:
1414
"""
1515
Parse input bytes into a JSON object.

0 commit comments

Comments
 (0)