You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2023/08/07 19:20:28 UTC

[superset] 01/04: fix: Pylint errors from cherry-picking

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 7fe61ccf7d7cae28d3215fd0082d3d494dd0ba7a
Author: Michael S. Molina <mi...@gmail.com>
AuthorDate: Fri Aug 4 15:05:51 2023 -0300

    fix: Pylint errors from cherry-picking
---
 superset/views/api.py  | 2 +-
 superset/views/core.py | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/superset/views/api.py b/superset/views/api.py
index 267d41dd75..c9473da1b3 100644
--- a/superset/views/api.py
+++ b/superset/views/api.py
@@ -73,7 +73,7 @@ class Api(BaseSupersetView):
     @handle_api_exception
     @has_access_api
     @expose("/v1/form_data/", methods=("GET",))
-    def query_form_data(self) -> FlaskResponse:  # pylint: disable=no-self-use
+    def query_form_data(self) -> FlaskResponse:
         """
         Get the formdata stored in the database for existing slice.
         params: slice_id: integer
diff --git a/superset/views/core.py b/superset/views/core.py
index cf1d8db08c..4508ec70c0 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -941,7 +941,8 @@ class Superset(BaseSupersetView):  # pylint: disable=too-many-public-methods
     @deprecated(
         new_target="api/v1/database/<int:pk>/table/<path:table_name>/<schema_name>/"
     )
-    def fetch_datasource_metadata(self) -> FlaskResponse:  # pylint: disable=no-self-use
+    # pylint: disable=no-self-use
+    def fetch_datasource_metadata(self) -> FlaskResponse:
         """
         Fetch the datasource metadata.