Skip to content

Commit

Permalink
fix(ci): mypy pre-commit issues (#27161)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8dc6cbe)
  • Loading branch information
dpgaspar authored and michael-s-molina committed Feb 22, 2024
1 parent 4b56670 commit 9a842dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion superset/sqllab/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ def get_results(self, **kwargs: Any) -> FlaskResponse:
# 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,
)
Expand Down
1 change: 0 additions & 1 deletion superset/sqllab/execution_context_convertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def serialize_payload(self) -> str:
),
default=utils.pessimistic_json_iso_dttm_ser,
ignore_nan=True,
encoding=None,
)

return json.dumps(
Expand Down

0 comments on commit 9a842dc

Please sign in to comment.