Skip to content

Commit

Permalink
fix pytest by disabling default indentation for dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Jul 26, 2024
1 parent df177df commit 05d432d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nicegui/json/builtin_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def dumps(obj: Any,
sort_keys: bool = False,
separators: Optional[Tuple[str, str]] = None, *,
indent: bool = True) -> str:
indent: bool = False) -> str:
"""Serializes a Python object to a JSON-encoded string.
This implementation uses Python's default json module, but extends it in order to support NumPy arrays.
Expand Down
2 changes: 1 addition & 1 deletion nicegui/json/orjson_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
def dumps(obj: Any,
sort_keys: bool = False,
separators: Optional[Tuple[str, str]] = None, *,
indent: bool = True) -> str:
indent: bool = False) -> str:
"""Serializes a Python object to a JSON-encoded string.
By default, this function supports serializing NumPy arrays, which Python's json module does not.
Expand Down

0 comments on commit 05d432d

Please sign in to comment.