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/04 18:06:09 UTC
[superset] branch 3.0 updated: 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
The following commit(s) were added to refs/heads/3.0 by this push:
new e9e06a522f fix: Pylint errors from cherry-picking
e9e06a522f is described below
commit e9e06a522fd6a581d0c5d25395d8ed5a963b5ba5
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..c1b66f8b55 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
+ @staticmethod
+ def fetch_datasource_metadata() -> FlaskResponse:
"""
Fetch the datasource metadata.