From c2469e77d7bdfc810e6890afb9d76299cd93aab0 Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Tue, 10 May 2022 14:31:36 -0400 Subject: [PATCH] add new enums for datasource types (#20015) --- 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 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