Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 20, 2024
1 parent 320a692 commit c78f742
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
1 change: 0 additions & 1 deletion xarray/namedarray/_array_api/_creation_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
_infer_dims,
)
from xarray.namedarray._typing import (
Default,
_arrayfunction_or_api,
_ArrayLike,
_default,
Expand Down
14 changes: 2 additions & 12 deletions xarray/namedarray/_array_api/_searching_functions.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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(
Expand Down
11 changes: 2 additions & 9 deletions xarray/namedarray/_array_api/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c78f742

Please sign in to comment.