You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2024/02/22 21:09:56 UTC

(superset) 01/04: fix(ci): mypy pre-commit issues (#27161)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 9a842dc1eabbb5469f421b6a4f8566ee167d379f
Author: Daniel Vaz Gaspar <da...@gmail.com>
AuthorDate: Mon Feb 19 16:29:20 2024 +0000

    fix(ci): mypy pre-commit issues (#27161)
    
    (cherry picked from commit 8dc6cbe206b4a4e5da365f66c3d2fcfec7dd9c6b)
---
 superset/sqllab/api.py                         | 4 +++-
 superset/sqllab/execution_context_convertor.py | 1 -
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/superset/sqllab/api.py b/superset/sqllab/api.py
index 6be378a9b5..eeb95e6aad 100644
--- a/superset/sqllab/api.py
+++ b/superset/sqllab/api.py
@@ -343,7 +343,9 @@ class SqlLabRestApi(BaseSupersetApi):
         # return the result without special encoding
         return json_success(
             json.dumps(
-                result, default=utils.json_iso_dttm_ser, ignore_nan=True, encoding=None
+                result,
+                default=utils.json_iso_dttm_ser,
+                ignore_nan=True,
             ),
             200,
         )
diff --git a/superset/sqllab/execution_context_convertor.py b/superset/sqllab/execution_context_convertor.py
index 430db0d52f..a1e7a86d0a 100644
--- a/superset/sqllab/execution_context_convertor.py
+++ b/superset/sqllab/execution_context_convertor.py
@@ -60,7 +60,6 @@ class ExecutionContextConvertor:
                 ),
                 default=utils.pessimistic_json_iso_dttm_ser,
                 ignore_nan=True,
-                encoding=None,
             )
 
         return json.dumps(