Skip to content

Commit 5d91eab

Browse files
ci: pre-commit autoupdate (#166)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Phil Schaf <flying-sheep@web.de>
1 parent f07b25f commit 5d91eab

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ repos:
66
- id: trailing-whitespace
77
- id: no-commit-to-branch
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.15.9
9+
rev: v0.15.10
1010
hooks:
1111
- id: ruff-check
1212
args: [--fix, --exit-non-zero-on-fix]
1313
- id: ruff-check
1414
args: [--preview, --select=CPY]
1515
- id: ruff-format
1616
- repo: https://github.com/tox-dev/pyproject-fmt
17-
rev: v2.21.0
17+
rev: v2.21.1
1818
hooks:
1919
- id: pyproject-fmt
2020
- repo: https://github.com/biomejs/pre-commit
21-
rev: v2.4.10
21+
rev: v2.4.11
2222
hooks:
2323
- id: biome-format
2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.20.0
25+
rev: v1.20.1
2626
hooks:
2727
- id: mypy
2828
args: [--config-file=pyproject.toml, .]

src/fast_array_utils/stats/_generic_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _generic_op_cs(
8888
if TYPE_CHECKING: # scipy-stubs thinks e.g. "int64" is invalid, which isn’t true
8989
assert isinstance(dtype, np.dtype | type | None)
9090
# convert to array so dimensions collapse as expected
91-
x = (sp.csr_array if x.format == "csr" else sp.csc_array)(x, **_dtype_kw(dtype, op)) # type: ignore[arg-type]
91+
x = (sp.csr_array if x.format == "csr" else sp.csc_array)(x, **_dtype_kw(dtype, op)) # type: ignore[arg-type,call-overload]
9292
rv = cast("NDArray[Any] | types.coo_array | np.number[Any]", getattr(x, op)(axis=axis))
9393
# old scipy versions’ sparray.{max,min}() return a 1×n/n×1 sparray here, so we squeeze
9494
return rv.toarray().squeeze() if isinstance(rv, types.coo_array) else rv

0 commit comments

Comments
 (0)