diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index db636c6f..dcb83660 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,13 +24,13 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.0.285" + rev: "v0.0.286" hooks: - id: ruff args: ["--fix", "--show-fixes"] - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.13.1" + rev: "1.1.0" hooks: - id: pyproject-fmt diff --git a/src/vector/backends/numpy.py b/src/vector/backends/numpy.py index 6385abcc..20602284 100644 --- a/src/vector/backends/numpy.py +++ b/src/vector/backends/numpy.py @@ -364,7 +364,7 @@ def _is_type_safe( | MomentumNumpy4D | CoordinatesNumpy, ) -> bool: - for i in range(0, len(array.dtype)): # type: ignore[arg-type] + for i in range(len(array.dtype)): # type: ignore[arg-type] if not issubclass( array.dtype[i].type, (numpy.integer, numpy.floating) ) or issubclass(array.dtype[i].type, numpy.timedelta64):