diff --git a/superset/utils/core.py b/superset/utils/core.py index 9e095da83a588..f0750ffb6fa60 100644 --- a/superset/utils/core.py +++ b/superset/utils/core.py @@ -174,8 +174,16 @@ class GenericDataType(IntEnum): # ROW = 7 +class DatasourceType(Enum): + SQLATABLE = "sqlatable" + TABLE = "table" + DATASET = "dataset" + QUERY = "query" + SAVEDQUERY = "saved_query" + + class DatasourceDict(TypedDict): - type: str + type: str # todo(hugh): update this to be DatasourceType id: int