From 6efdd9b601476fa87084c9922e59ecf3f0c1e563 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 14 Nov 2024 11:35:50 -0500 Subject: [PATCH] Update numpy.py --- src/boost_histogram/numpy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(