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 Feb 8, 2025
1 parent b301356 commit 8698311
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion narwhals/_duckdb/expr_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def func(_input: duckdb.Expression) -> duckdb.Expression:
_input,
ConstantExpression(offset + 1)
if offset >= 0
else FunctionExpression("length", _input) + offset + 1, # type: ignore[operator]
else FunctionExpression("length", _input) + offset + 1, # type: ignore[operator]
FunctionExpression("length", _input)
if length is None
else ConstantExpression(length) + offset, # type: ignore[operator]
Expand Down
1 change: 0 additions & 1 deletion narwhals/_pandas_like/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
T = TypeVar("T")

if TYPE_CHECKING:
import numpy as np

from pandas._typing import Dtype as PandasDtype

Expand Down
2 changes: 1 addition & 1 deletion tests/hypothesis/getitem_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def tuple_selector(draw: st.DrawFn) -> tuple[Any, Any]:
),
st.slices(TEST_DATA_NUM_ROWS),
arrays(
dtype=st.sampled_from([np.int8, np.int16, np.int32, np.int64]), # type: ignore[arg-type]
dtype=st.sampled_from([np.int8, np.int16, np.int32, np.int64]), # type: ignore[arg-type]
shape=st.integers(min_value=0, max_value=10),
elements=st.integers(
min_value=0, # pyarrow does not support negative indexing
Expand Down

0 comments on commit 8698311

Please sign in to comment.