Skip to content

Commit

Permalink
Update numpy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Nov 14, 2024
1 parent 6dab33a commit 6efdd9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/boost_histogram/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6efdd9b

Please sign in to comment.