Skip to content

Commit

Permalink
pre-commit auto-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Apr 17, 2024
1 parent 0961a40 commit db02659
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions monty/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,24 @@ def jsanitize(
return obj
if isinstance(obj, (list, tuple)):
return [
jsanitize(i, strict=strict, allow_bson=allow_bson, enum_values=enum_values, recursive_msonable=recursive_msonable)
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, recursive_msonable=recursive_msonable)
jsanitize(
i,
strict=strict,
allow_bson=allow_bson,
enum_values=enum_values,
recursive_msonable=recursive_msonable,
)
for i in obj.tolist()
]
if np is not None and isinstance(obj, np.generic):
Expand Down

0 comments on commit db02659

Please sign in to comment.