mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
import json
|
||||
import urllib.request
|
||||
from io import BytesIO
|
||||
from typing import Tuple
|
||||
from unittest import skipUnless
|
||||
from unittest.mock import ANY, call, MagicMock, patch
|
||||
|
||||
@@ -203,7 +202,7 @@ class TestThumbnails(SupersetTestCase):
|
||||
digest_return_value = "foo_bar"
|
||||
digest_hash = "5c7d96a3dd7a87850a2ef34087565a6e"
|
||||
|
||||
def _get_id_and_thumbnail_url(self, url: str) -> Tuple[int, str]:
|
||||
def _get_id_and_thumbnail_url(self, url: str) -> tuple[int, str]:
|
||||
rv = self.client.get(url)
|
||||
resp = json.loads(rv.data.decode("utf-8"))
|
||||
obj = resp["result"][0]
|
||||
|
||||
Reference in New Issue
Block a user