Skip to content

Commit

Permalink
add new enums for datasource types (#20015)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed May 10, 2022
1 parent bba40d7 commit 1f0daa9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion superset/utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 1f0daa9

Please sign in to comment.