mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -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)",
|
||||
|
||||
Reference in New Issue
Block a user