Skip to content

Commit

Permalink
unintended linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hollymandel committed Sep 20, 2024
1 parent 3d824d0 commit 8b8c8a8
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions xarray/tests/test_interp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@
import xarray as xr
from xarray.coding.cftimeindex import _parse_array_of_cftime_strings
from xarray.core.types import InterpOptions
from xarray.tests import (
assert_allclose,
assert_equal,
assert_identical,
has_dask,
has_scipy,
requires_cftime,
requires_dask,
requires_scipy,
)
from xarray.tests import (assert_allclose, assert_equal, assert_identical,
has_dask, has_scipy, requires_cftime, requires_dask,
requires_scipy)
from xarray.tests.test_dataset import create_test_data

try:
Expand Down Expand Up @@ -634,15 +627,7 @@ def test_interp_like() -> None:
],
)
@pytest.mark.filterwarnings("ignore:Converting non-nanosecond")
def test_datetime(
x_new: (
DatetimeIndex
| ndarray[Any, dtype[datetime64]]
| list[str]
| Literal["2000-01-01T12:00"]
),
expected: list[int] | list[float] | float,
) -> None:
def test_datetime(x_new, expected) -> None:
da = xr.DataArray(
np.arange(24),
dims="time",
Expand Down Expand Up @@ -824,7 +809,7 @@ def test_decompose(method: InterpOptions) -> None:
],
)
def test_interpolate_chunk_1d(
method: InterpOptions, data_ndim: Any, interp_ndim: Any, nscalar: Any, chunked: bool
method: InterpOptions, data_ndim, interp_ndim, nscalar, chunked: bool
) -> None:
"""Interpolate nd array with multiple independent indexers
Expand Down Expand Up @@ -959,11 +944,7 @@ def test_interp1d_bounds_error() -> None:
],
)
def test_coord_attrs(
x: (
float
| ndarray[Any, dtype[Any]]
| tuple[Literal[x], ndarray[Any, dtype[Any]], dict[str, str]]
),
x,
expect_same_attrs: bool,
) -> None:
base_attrs = dict(foo="bar")
Expand Down

0 comments on commit 8b8c8a8

Please sign in to comment.