mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from typing import Any, Dict
|
||||
from typing import Any
|
||||
|
||||
from superset import cache
|
||||
from superset.charts.commands.exceptions import ChartDataCacheLoadError
|
||||
@@ -22,7 +22,7 @@ from superset.charts.commands.exceptions import ChartDataCacheLoadError
|
||||
|
||||
class QueryContextCacheLoader: # pylint: disable=too-few-public-methods
|
||||
@staticmethod
|
||||
def load(cache_key: str) -> Dict[str, Any]:
|
||||
def load(cache_key: str) -> dict[str, Any]:
|
||||
cache_value = cache.get(cache_key)
|
||||
if not cache_value:
|
||||
raise ChartDataCacheLoadError("Cached data not found")
|
||||
|
||||
Reference in New Issue
Block a user