Skip to content

Commit

Permalink
Pacify mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonspeed committed Jan 21, 2025
1 parent d68d020 commit 19588b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py-polars/tests/unit/operations/test_index_of.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 19588b8

Please sign in to comment.