From 62ad921bacb45a33c5c005f1580a89653b1b5f0a Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Tue, 10 May 2022 17:50:26 +0000 Subject: [PATCH] add new enums for datasource types --- superset/utils/core.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/superset/utils/core.py b/superset/utils/core.py index 68caf7872c95a..6a4163742b428 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