Skip to content

Commit

Permalink
chore(🦾): bump python simplejson 3.17.3 -> 3.19.2 (apache#27757)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Maxime Beauchemin <[email protected]>
  • Loading branch information
3 people authored and EnxDev committed Apr 12, 2024
1 parent 1e521f4 commit 5580b09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ shillelagh[gsheetsapi]==1.2.10
# via apache-superset
shortid==0.1.2
# via apache-superset
simplejson==3.17.3
simplejson==3.19.2
# via apache-superset
six==1.16.0
# via
Expand Down
4 changes: 3 additions & 1 deletion superset/utils/hashing.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def md5_sha_from_dict(
ignore_nan: bool = False,
default: Optional[Callable[[Any], Any]] = None,
) -> str:
json_data = json.dumps(obj, sort_keys=True, ignore_nan=ignore_nan, default=default)
json_data = json.dumps(
obj, sort_keys=True, ignore_nan=ignore_nan, default=default, allow_nan=True
)

return md5_sha_from_str(json_data)

0 comments on commit 5580b09

Please sign in to comment.