Skip to content

Commit e07f57d

Browse files
fix(mcp): fix ruff linting issues in embedded chart files
- Fix import sorting in api.py - Remove unused imports in view.py (Any, cast, same_origin, GetExplorePermalinkCommand) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0b1d160 commit e07f57d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

superset/embedded_chart/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from flask import g, Response
2121
from flask_appbuilder.api import expose, safe
22+
2223
from superset.daos.key_value import KeyValueDAO
2324
from superset.embedded_chart.exceptions import (
2425
EmbeddedChartAccessDeniedError,

superset/embedded_chart/view.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717
import logging
18-
from typing import Any, Callable, cast
18+
from typing import Callable
1919

2020
from flask import abort, current_app, request
2121
from flask_appbuilder import expose
2222
from flask_login import AnonymousUserMixin, login_user
23-
from flask_wtf.csrf import same_origin
2423

2524
from superset import event_logger
26-
from superset.commands.explore.permalink.get import GetExplorePermalinkCommand
2725
from superset.superset_typing import FlaskResponse
2826
from superset.utils import json
2927
from superset.views.base import BaseSupersetView, common_bootstrap_payload

0 commit comments

Comments
 (0)