Skip to content

Commit

Permalink
remove any
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored May 12, 2022
1 parent 9983ce9 commit afa8760
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions superset/dao/datasource/dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
# specific language governing permissions and limitations
# under the License.

from typing import Any, Dict, List, Optional, Set, Union
from enum import Enum
from typing import Any, Dict, List, Optional, Set, Type, Union

from flask_babel import _
from sqlalchemy import or_
Expand All @@ -32,12 +33,12 @@
from superset.tables.models import Table
from superset.utils.core import DatasourceType

Datasource = Union[Dataset, SqlaTable, Table, Query, SavedQuery, Any]
Datasource = Union[Dataset, SqlaTable, Table, Query, SavedQuery]


class DatasourceDAO(BaseDAO):

sources: Dict[DatasourceType, Datasource] = {
sources: Dict[DatasourceType, Type[Datasource]] = {
DatasourceType.SQLATABLE: SqlaTable,
DatasourceType.QUERY: Query,
DatasourceType.SAVEDQUERY: SavedQuery,
Expand Down

0 comments on commit afa8760

Please sign in to comment.