diff --git a/pyproject.toml b/pyproject.toml index 416e46f..bfa5f53 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,7 +69,7 @@ plugins = "numpy.typing.mypy_plugin" [tool.ruff] lint.select = ["E", "F", "B", "I"] -lint.ignore = ["E501"] # line too long +lint.ignore = ["E501", "B905"] # line too long, zip without explicit `strict` lint.extend-select = ["I001"] # unsorted-imports fix = true target-version = "py311" diff --git a/tests/test_pytorch.py b/tests/test_pytorch.py index 3344b90..05e0473 100644 --- a/tests/test_pytorch.py +++ b/tests/test_pytorch.py @@ -5,6 +5,7 @@ from __future__ import annotations +import sys from functools import partial from pathlib import Path from typing import Any, Callable, Optional, Sequence, Tuple, Union @@ -936,7 +937,7 @@ def test_csr__merge( np.array_split(sp_coo.row, n_splits), np.array_split(sp_coo.col, n_splits), np.array_split(sp_coo.data, n_splits), - strict=False, + **(dict(strict=False) if sys.version_info > (3, 9) else {}), ) ] _ncsr = _CSR_IO_Buffer.merge(