From a664e2105423a6456494f82440bc020bd25788d9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 09:43:47 -0700 Subject: [PATCH] =?UTF-8?q?chore(=F0=9F=A6=BE):=20bump=20python=20simplejs?= =?UTF-8?q?on=203.17.3=20->=203.19.2=20(#27757)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: GitHub Action Co-authored-by: Maxime Beauchemin --- requirements/base.txt | 2 +- superset/utils/hashing.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index d2d3e0e9d..ea0f90024 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -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 diff --git a/superset/utils/hashing.py b/superset/utils/hashing.py index fff654263..86ed736b0 100644 --- a/superset/utils/hashing.py +++ b/superset/utils/hashing.py @@ -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)