Skip to content

Commit

Permalink
add new enums for datasource types (apache#20015)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored and philipher29 committed Jun 9, 2022
1 parent 539bfd8 commit c2469e7
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 c2469e7

Please sign in to comment.