Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 2, 2024
1 parent 610687f commit 8af9539
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
10 changes: 5 additions & 5 deletions src/boost_histogram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
"Histogram",
"IndexingExpr",
"Kind",
"axis",
"storage",
"__version__",
"accumulators",
"numpy",
"axis",
"loc",
"numpy",
"overflow",
"rebin",
"storage",
"sum",
"underflow",
"overflow",
"__version__",
)


Expand Down
2 changes: 1 addition & 1 deletion src/boost_histogram/_internal/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _opts(**kwargs: bool) -> set[str]:
# Contains common methods and properties to all axes
@set_module("boost_histogram.axis")
class Axis:
__slots__ = ("_ax", "__dict__")
__slots__ = ("__dict__", "_ax")
_family: object

def __init_subclass__(cls, *, family: object) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/boost_histogram/_internal/hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ def _expand_ellipsis(indexes: Iterable[Any], rank: int) -> list[Any]:
class Histogram:
# Note this is a __slots__ __dict__ class!
__slots__ = (
"__dict__",
"_hist",
"axes",
"__dict__",
)
# .metadata and ._variance_known are part of the dict

Expand Down
6 changes: 3 additions & 3 deletions src/boost_histogram/_internal/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@


__all__ = (
"CppHistogram",
"AxisLike",
"ArrayLike",
"Ufunc",
"AxisLike",
"CppHistogram",
"StdIndex",
"StrIndex",
"Ufunc",
)


Expand Down
2 changes: 1 addition & 1 deletion src/boost_histogram/accumulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
)
from ._internal.typing import Accumulator

__all__ = ("Sum", "Mean", "WeightedSum", "WeightedMean", "Accumulator")
__all__ = ("Accumulator", "Mean", "Sum", "WeightedMean", "WeightedSum")

for cls in (Sum, Mean, WeightedSum, WeightedMean):
cls.__module__ = "boost_histogram.accumulators"
Expand Down
14 changes: 7 additions & 7 deletions src/boost_histogram/axis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
from . import transform

__all__ = (
"Regular",
"Variable",
"Integer",
"ArrayTuple",
"AxesTuple",
"Axis",
"Boolean",
"IntCategory",
"Integer",
"Regular",
"StrCategory",
"Boolean",
"Axis",
"Traits",
"Variable",
"transform",
"ArrayTuple",
"AxesTuple",
)
2 changes: 1 addition & 1 deletion src/boost_histogram/axis/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
_internal_conversion,
)

__all__ = ("AxisTransform", "Pow", "Function", "sqrt", "log")
__all__ = ("AxisTransform", "Function", "Pow", "log", "sqrt")

sqrt = Function("_sqrt_fn", "_sq_fn", convert=_internal_conversion, name="sqrt")
log = Function("_log_fn", "_exp_fn", convert=_internal_conversion, name="log")
8 changes: 4 additions & 4 deletions src/boost_histogram/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
)

__all__ = (
"Storage",
"Int64",
"Double",
"AtomicInt64",
"Double",
"Int64",
"Mean",
"Storage",
"Unlimited",
"Weight",
"Mean",
"WeightedMean",
)
2 changes: 1 addition & 1 deletion src/boost_histogram/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from ._internal.typing import AxisLike

__all__ = ("Slicer", "Locator", "at", "loc", "overflow", "underflow", "rebin", "sum")
__all__ = ("Locator", "Slicer", "at", "loc", "overflow", "rebin", "sum", "underflow")


class Slicer:
Expand Down

0 comments on commit 8af9539

Please sign in to comment.