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: