Skip to content

Commit 3ec01dc

Browse files
[pre-commit.ci] pre-commit autoupdate (#1236)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.0](astral-sh/ruff-pre-commit@v0.6.9...v0.7.0) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.12.1](pre-commit/mirrors-mypy@v1.11.2...v1.12.1) * add type ignore assignment --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Edoardo Abati <[email protected]>
1 parent ca11fa3 commit 3ec01dc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: 'v0.6.9'
4+
rev: 'v0.7.0'
55
hooks:
66
# Run the formatter.
77
- id: ruff-format
88
# Run the linter.
99
- id: ruff
1010
args: [--fix]
1111
- repo: https://github.com/pre-commit/mirrors-mypy
12-
rev: 'v1.11.2'
12+
rev: 'v1.12.1'
1313
hooks:
1414
- id: mypy
1515
additional_dependencies: ['polars==1.4.1', 'pytest==8.3.2']

narwhals/_arrow/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def __getitem__(
172172
),
173173
) -> ArrowSeries | ArrowDataFrame:
174174
if isinstance(item, tuple):
175-
item = tuple(list(i) if is_sequence_but_not_str(i) else i for i in item)
175+
item = tuple(list(i) if is_sequence_but_not_str(i) else i for i in item) # type: ignore[assignment]
176176

177177
if isinstance(item, str):
178178
from narwhals._arrow.series import ArrowSeries

narwhals/_pandas_like/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def __getitem__(
155155
),
156156
) -> PandasLikeSeries | PandasLikeDataFrame:
157157
if isinstance(item, tuple):
158-
item = tuple(list(i) if is_sequence_but_not_str(i) else i for i in item)
158+
item = tuple(list(i) if is_sequence_but_not_str(i) else i for i in item) # type: ignore[assignment]
159159

160160
if isinstance(item, str):
161161
from narwhals._pandas_like.series import PandasLikeSeries

0 commit comments

Comments
 (0)