mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
# 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 unittest.mock import Mock
|
||||
|
||||
|
||||
def get_column_mock(params: Dict[str, Any]) -> Mock:
|
||||
def get_column_mock(params: dict[str, Any]) -> Mock:
|
||||
mock = Mock()
|
||||
mock.id = params["id"]
|
||||
mock.column_name = params["column_name"]
|
||||
@@ -32,7 +32,7 @@ def get_column_mock(params: Dict[str, Any]) -> Mock:
|
||||
return mock
|
||||
|
||||
|
||||
def get_metric_mock(params: Dict[str, Any]) -> Mock:
|
||||
def get_metric_mock(params: dict[str, Any]) -> Mock:
|
||||
mock = Mock()
|
||||
mock.id = params["id"]
|
||||
mock.metric_name = params["metric_name"]
|
||||
|
||||
Reference in New Issue
Block a user