Skip to content

Commit

Permalink
chore: follow suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Mar 19, 2024
1 parent 98ae147 commit c4ae133
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

import functools
import operator
import os
import platform
import sys
Expand All @@ -10,6 +12,7 @@
DIR = Path(__file__).parent.resolve()

sys.path.append(str(DIR / "extern" / "pybind11"))

from pybind11.setup_helpers import ParallelCompile, Pybind11Extension # noqa: E402

del sys.path[-1]
Expand Down Expand Up @@ -67,7 +70,7 @@
"examples": ["matplotlib", "xarray", "xhistogram", "netCDF4", "numba", "uproot3"],
"dev": ["ipykernel", "typer"],
}
extras["all"] = sum(extras.values(), [])
extras["all"] = functools.reduce(operator.iadd, extras.values(), [])
extras["dev"] += extras["test"]

setup(ext_modules=ext_modules, extras_require=extras)
2 changes: 1 addition & 1 deletion src/boost_histogram/_internal/hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def __init__(
# Check all available histograms, and if the storage matches, return that one
for h in _histograms:
if isinstance(storage, h._storage_type):
self._hist = h(axes, storage) # type: ignore[unreachable]
self._hist = h(axes, storage) # type: ignore[arg-type]
self.axes = self._generate_axes_()
return

Expand Down

0 comments on commit c4ae133

Please sign in to comment.