mirror of
https://github.com/apache/superset.git
synced 2026-04-17 07:05:04 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
import re
|
||||
import time
|
||||
from typing import Any, Dict
|
||||
from typing import Any
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
@@ -49,7 +49,7 @@ from tests.integration_tests.fixtures.birth_names_dashboard import (
|
||||
from tests.integration_tests.fixtures.query_context import get_query_context
|
||||
|
||||
|
||||
def get_sql_text(payload: Dict[str, Any]) -> str:
|
||||
def get_sql_text(payload: dict[str, Any]) -> str:
|
||||
payload["result_type"] = ChartDataResultType.QUERY.value
|
||||
query_context = ChartDataQueryContextSchema().load(payload)
|
||||
responses = query_context.get_payload()
|
||||
|
||||
Reference in New Issue
Block a user