diff --git a/superset/commands/dashboard/importers/v0.py b/superset/commands/dashboard/importers/v0.py index 0bfd57c5a5dec..56a234590649c 100644 --- a/superset/commands/dashboard/importers/v0.py +++ b/superset/commands/dashboard/importers/v0.py @@ -80,7 +80,7 @@ def import_chart( def import_dashboard( - # pylint: disable=too-many-branches,too-many-locals,too-many-statements + # pylint: disable=too-many-locals,too-many-statements dashboard_to_import: Dashboard, dataset_id_mapping: Optional[dict[int, int]] = None, import_time: Optional[int] = None, diff --git a/superset/tags/filters.py b/superset/tags/filters.py index 2a0f01ec020ea..ff6be712d3368 100644 --- a/superset/tags/filters.py +++ b/superset/tags/filters.py @@ -34,6 +34,6 @@ class UserCreatedTagTypeFilter(BaseFilter): # pylint: disable=too-few-public-me def apply(self, query: Query, value: bool) -> Query: if value: return query.filter(Tag.type == TagType.custom) - elif value is False: + if value is False: return query.filter(Tag.type != TagType.custom) return query diff --git a/superset/views/core.py b/superset/views/core.py index 307cd08c6414e..c3974117e2aca 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -15,7 +15,6 @@ # specific language governing permissions and limitations # under the License. # pylint: disable=invalid-name -# pylint: disable=too-many-lines from __future__ import annotations import contextlib