chore(pre-commit): Add pyupgrade and pycln hooks (#24197)

This commit is contained in:
John Bodley
2023-06-01 12:01:10 -07:00
committed by GitHub
parent 7d7ce63970
commit a4d5d7c6b9
448 changed files with 3084 additions and 3305 deletions

View File

@@ -17,7 +17,7 @@
# pylint: disable=import-outside-toplevel
from typing import Any, Callable, Dict, List, Optional, Tuple
from typing import Any, Callable
import pytest
@@ -33,7 +33,7 @@ def ocient_is_installed() -> bool:
# (msg,expected)
MARSHALED_OCIENT_ERRORS: List[Tuple[str, SupersetError]] = [
MARSHALED_OCIENT_ERRORS: list[tuple[str, SupersetError]] = [
(
"The referenced user does not exist (User 'mj' not found)",
SupersetError(
@@ -224,7 +224,7 @@ def test_connection_errors(msg: str, expected: SupersetError) -> None:
def _generate_gis_type_sanitization_test_cases() -> (
List[Tuple[str, int, Any, Dict[str, Any]]]
list[tuple[str, int, Any, dict[str, Any]]]
):
if not ocient_is_installed():
return []