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

@@ -18,7 +18,7 @@
# pylint: disable=import-outside-toplevel
import json
from datetime import datetime
from typing import List, Optional
from typing import Optional
import pytest
from pytest_mock import MockFixture
@@ -54,7 +54,7 @@ def test_get_metrics(mocker: MockFixture) -> None:
inspector: Inspector,
table_name: str,
schema: Optional[str],
) -> List[MetricType]:
) -> list[MetricType]:
return [
{
"expression": "COUNT(DISTINCT user_id)",