From 08f26b92db21f62db31e32beae5653a3ed87039f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:29:08 -0500 Subject: [PATCH] chore(deps): update pre-commit hooks (#965) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update pre-commit hooks updates: - [github.com/adamchainz/blacken-docs: 1.18.0 → 1.19.1](https://github.com/adamchainz/blacken-docs/compare/1.18.0...1.19.1) - [github.com/astral-sh/ruff-pre-commit: v0.6.9 → v0.7.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.9...v0.7.2) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.13.0) - [github.com/pre-commit/mirrors-clang-format: v19.1.1 → v19.1.3](https://github.com/pre-commit/mirrors-clang-format/compare/v19.1.1...v19.1.3) - [github.com/python-jsonschema/check-jsonschema: 0.29.3 → 0.29.4](https://github.com/python-jsonschema/check-jsonschema/compare/0.29.3...0.29.4) - [github.com/henryiii/validate-pyproject-schema-store: 2024.10.07 → 2024.10.21](https://github.com/henryiii/validate-pyproject-schema-store/compare/2024.10.07...2024.10.21) * Update numpy.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner --- .pre-commit-config.yaml | 12 ++++++------ src/boost_histogram/numpy.py | 3 +-- 2 files changed, 7 insertions(+), 8 deletions(-) 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(