Skip to content

Commit a996ad2

Browse files
committed
use repr() instead of str()
1 parent 79d68a5 commit a996ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superset/databases/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_indexes_metadata(
5555

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

0 commit comments

Comments
 (0)