From c78f7425984c0ac91151334e164e6ad990b99131 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:27:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../namedarray/_array_api/_creation_functions.py | 1 - .../namedarray/_array_api/_searching_functions.py | 14 ++------------ xarray/namedarray/_array_api/_utils.py | 11 ++--------- 3 files changed, 4 insertions(+), 22 deletions(-) diff --git a/xarray/namedarray/_array_api/_creation_functions.py b/xarray/namedarray/_array_api/_creation_functions.py index 31a690d424b..707e1f46761 100644 --- a/xarray/namedarray/_array_api/_creation_functions.py +++ b/xarray/namedarray/_array_api/_creation_functions.py @@ -10,7 +10,6 @@ _infer_dims, ) from xarray.namedarray._typing import ( - Default, _arrayfunction_or_api, _ArrayLike, _default, diff --git a/xarray/namedarray/_array_api/_searching_functions.py b/xarray/namedarray/_array_api/_searching_functions.py index 2ee30632b2f..ee6825c544c 100644 --- a/xarray/namedarray/_array_api/_searching_functions.py +++ b/xarray/namedarray/_array_api/_searching_functions.py @@ -1,20 +1,12 @@ from __future__ import annotations -from typing import Any, TYPE_CHECKING +from typing import TYPE_CHECKING from xarray.namedarray._array_api._utils import _get_data_namespace, _infer_dims from xarray.namedarray._typing import ( Default, - _arrayfunction_or_api, - _ArrayLike, _default, - _Device, - _DimsLike, - _DType, _Dims, - _Shape, - _ShapeType, - duckarray, ) from xarray.namedarray.core import ( NamedArray, @@ -23,9 +15,7 @@ ) if TYPE_CHECKING: - from typing import Literal, Optional, Tuple - -from xarray.namedarray._array_api._utils import _get_data_namespace + from typing import Literal def argmax( diff --git a/xarray/namedarray/_array_api/_utils.py b/xarray/namedarray/_array_api/_utils.py index f01ec05b146..4e5322186ae 100644 --- a/xarray/namedarray/_array_api/_utils.py +++ b/xarray/namedarray/_array_api/_utils.py @@ -5,18 +5,11 @@ from xarray.namedarray._typing import ( Default, - _arrayfunction_or_api, - _ArrayLike, - _default, _arrayapi, - _Device, + _default, _DimsLike, - _DType, - _Dims, - _Shape, - _ShapeType, - duckarray, _dtype, + _Shape, ) if TYPE_CHECKING: