From 4706b4308ec4a82aa765aafaa70ad2057977b98b Mon Sep 17 00:00:00 2001 From: Peter Kosztolanyi Date: Fri, 9 Jul 2021 03:17:48 +0100 Subject: [PATCH] Add docstring --- superset/sql_lab.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/superset/sql_lab.py b/superset/sql_lab.py index ea2fd7814023f..339f666fa14b3 100644 --- a/superset/sql_lab.py +++ b/superset/sql_lab.py @@ -584,7 +584,13 @@ def execute_sql_statements( # pylint: disable=too-many-arguments, too-many-loca def cancel_query(query: Query, user_name: Optional[str] = None) -> None: - """Cancal a running query.""" + """ + Cancel a running query. + + :param query: Query to cancel + :param user_name: Default username + :return: None + """ cancel_payload = query.extra.get(cancel_payload_key, None) if cancel_payload is None: return