Skip to content

Commit

Permalink
Merge pull request #657 from Andrew-S-Rosen/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Apr 13, 2024
2 parents a11cd9f + 3610a8c commit b887f02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 14 additions & 2 deletions monty/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,13 +849,25 @@ def jsanitize(

if isinstance(obj, (list, tuple)):
return [
jsanitize(i, strict=strict, allow_bson=allow_bson, enum_values=enum_values)
jsanitize(
i,
strict=strict,
allow_bson=allow_bson,
enum_values=enum_values,
recursive_msonable=recursive_msonable,
)
for i in obj
]

if np is not None and isinstance(obj, np.ndarray):
return [
jsanitize(i, strict=strict, allow_bson=allow_bson, enum_values=enum_values)
jsanitize(
i,
strict=strict,
allow_bson=allow_bson,
enum_values=enum_values,
recursive_msonable=recursive_msonable,
)
for i in obj.tolist()
]

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ authors = [
description = "Monty is the missing complement to Python."
readme = "README.md"
requires-python = ">=3.9"
keywords = ["usatt", "table tennis"]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit b887f02

Please sign in to comment.