diff --git a/superset/commands/base.py b/superset/commands/base.py index 8b330d0669c0b..d2efcda4fe838 100644 --- a/superset/commands/base.py +++ b/superset/commands/base.py @@ -58,7 +58,7 @@ def populate_owners(owner_ids: Optional[list[int]] = None) -> list[User]: return populate_owner_list(owner_ids, default_to_user=True) -class UpdateMixin: # pylint: disable=too-few-public-methods +class UpdateMixin: @staticmethod def populate_owners(owner_ids: Optional[list[int]] = None) -> list[User]: """ diff --git a/superset/commands/dataset/create.py b/superset/commands/dataset/create.py index ca2779332d77c..16b87a567a5f0 100644 --- a/superset/commands/dataset/create.py +++ b/superset/commands/dataset/create.py @@ -21,7 +21,6 @@ from marshmallow import ValidationError from sqlalchemy.exc import SQLAlchemyError -from superset import jinja_context from superset.commands.base import BaseCommand, CreateMixin from superset.commands.dataset.exceptions import ( DatabaseNotFoundValidationError, @@ -35,7 +34,6 @@ from superset.daos.exceptions import DAOCreateFailedError from superset.exceptions import SupersetSecurityException from superset.extensions import db, security_manager -from superset.models.core import Database logger = logging.getLogger(__name__)