From 19588b882ef4cf4ea1310cc025569f16e2c87199 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 21 Jan 2025 12:14:08 -0500 Subject: [PATCH] Pacify mypy. --- py-polars/tests/unit/operations/test_index_of.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/py-polars/tests/unit/operations/test_index_of.py b/py-polars/tests/unit/operations/test_index_of.py index 531cb52dee9a..7301d6dfd311 100644 --- a/py-polars/tests/unit/operations/test_index_of.py +++ b/py-polars/tests/unit/operations/test_index_of.py @@ -22,7 +22,7 @@ def isnan(value: object) -> bool: return False if not isinstance(value, (np.number, float)): return False - return np.isnan(value) + return np.isnan(value) # type: ignore[no-any-return] def assert_index_of( @@ -119,9 +119,9 @@ def test_integer(dtype: pl.DataType) -> None: 3, None, 4, - pl.select(dtype.max()).item(), - pl.select(dtype.min()).item(), - ] # type: ignore[attr-defined] + pl.select(dtype.max()).item(), # type: ignore[attr-defined] + pl.select(dtype.min()).item(), # type: ignore[attr-defined] + ] series = pl.Series(values, dtype=dtype) sorted_series_asc = series.sort(descending=False) sorted_series_desc = series.sort(descending=True)