mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: Update pylint to 2.17.4 (#24700)
Co-authored-by: John Bodley <john.bodley@gmail.com>
This commit is contained in:
@@ -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
|
||||
@@ -105,7 +105,7 @@ class Api(BaseSupersetView):
|
||||
}
|
||||
return self.json_response({"result": result})
|
||||
except (ValueError, TimeRangeParseFailError, TimeRangeAmbiguousError) as error:
|
||||
error_msg = {"message": _("Unexpected time range: %s" % error)}
|
||||
error_msg = {"message": _(f"Unexpected time range: {error}")}
|
||||
return self.json_response(error_msg, 400)
|
||||
|
||||
def get_query_context_factory(self) -> QueryContextFactory:
|
||||
|
||||
Reference in New Issue
Block a user