diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dd16d973..3a0b6af1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/adamchainz/blacken-docs - rev: "1.18.0" + rev: "1.19.1" hooks: - id: blacken-docs additional_dependencies: [black==23.*] @@ -37,7 +37,7 @@ repos: types_or: [yaml, markdown, html, css, scss, javascript, json] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.9" + rev: "v0.7.2" hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -46,7 +46,7 @@ repos: types_or: [python, pyi, jupyter] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy files: ^src @@ -68,7 +68,7 @@ repos: exclude: .pre-commit-config.yaml - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.1 + rev: v19.1.3 hooks: - id: clang-format types_or: [c++] @@ -81,12 +81,12 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.3 + rev: 0.29.4 hooks: - id: check-readthedocs - id: check-github-workflows - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2024.10.07 + rev: 2024.10.21 hooks: - id: validate-pyproject diff --git a/src/boost_histogram/numpy.py b/src/boost_histogram/numpy.py index 74487447..bf676c04 100644 --- a/src/boost_histogram/numpy.py +++ b/src/boost_histogram/numpy.py @@ -39,8 +39,7 @@ def histogramdd( storage: _storage.Storage = _storage.Double(), # noqa: B008 threads: int | None = None, ) -> Any: - # TODO: Might be a bug in MyPy? This should type - cls: type[_hist.Histogram] = _hist.Histogram if histogram is None else histogram # type: ignore[assignment] + cls: type[_hist.Histogram] = _hist.Histogram if histogram is None else histogram if normed is not None: raise KeyError(