Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use repr() instead of str()
Browse files Browse the repository at this point in the history
justinpark committed Jan 30, 2025

Verified

This commit was signed with the committer’s verified signature.
jnatten Jonas Natten
1 parent 79d68a5 commit a996ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/databases/utils.py
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ def get_indexes_metadata(

def get_col_type(col: dict[Any, Any]) -> str:
try:
dtype = f"{[col['type']]}"[1:-1]
dtype = repr(col["type"])
except Exception: # pylint: disable=broad-except
# sqla.types.JSON __str__ has a bug, so using __class__.
dtype = col["type"].__class__.__name__

0 comments on commit a996ad2

Please sign in to comment.