Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/boost_histogram/_core/axis/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class _BaseAxis:
def centers(self) -> np.ndarray: ...
@property
def widths(self) -> np.ndarray: ...
def index(self, value: ArrayLike, /) -> int | np.ndarray: ...
def value(self, index: ArrayLike, /) -> float | np.ndarray: ...
def index(self, arg0: ArrayLike) -> int | np.ndarray: ...
def value(self, arg0: ArrayLike) -> float | np.ndarray: ...

class _BaseRegular(_BaseAxis):
def __init__(self, bins: int, start: float, stop: float) -> None: ...
def __iter__(self) -> Iterator[tuple[float, float]]: ...
def bin(self, i: int, /) -> tuple[float, float]: ...
def bin(self, arg0: int) -> tuple[float, float]: ...

class regular_none(_BaseRegular): ...
class regular_uflow(_BaseRegular): ...
Expand All @@ -70,7 +70,7 @@ class regular_trans(_BaseRegular):
class _BaseVariable(_BaseAxis):
def __init__(self, edges: Iterable[float]) -> None: ...
def __iter__(self) -> Iterator[tuple[float, float]]: ...
def bin(self, i: int, /) -> tuple[float, float]: ...
def bin(self, arg0: int) -> tuple[float, float]: ...

class variable_none(_BaseVariable): ...
class variable_uflow(_BaseVariable): ...
Expand All @@ -82,7 +82,7 @@ class variable_circular(_BaseVariable): ...
class _BaseInteger(_BaseAxis):
def __init__(self, start: int, stop: int) -> None: ...
def __iter__(self) -> Iterator[int]: ...
def bin(self, i: int, /) -> int: ...
def bin(self, arg0: int) -> int: ...

class integer_none(_BaseInteger): ...
class integer_uflow(_BaseInteger): ...
Expand All @@ -94,19 +94,19 @@ class integer_circular(_BaseInteger): ...
class _BaseCatInt(_BaseAxis):
def __init__(self, categories: Iterable[int]) -> None: ...
def __iter__(self) -> Iterator[int]: ...
def bin(self, i: int, /) -> int: ...
def bin(self, arg0: int) -> int: ...

class category_int(_BaseCatInt): ...
class category_int_growth(_BaseCatInt): ...

class _BaseCatStr(_BaseAxis):
def __init__(self, categories: Iterable[str]) -> None: ...
def __iter__(self) -> Iterator[str]: ...
def bin(self, i: int, /) -> str: ...
def bin(self, arg0: int) -> str: ...

class category_str(_BaseCatStr): ...
class category_str_growth(_BaseCatStr): ...

class boolean(_BaseAxis):
def __iter__(self) -> Iterator[int]: ...
def bin(self, i: int, /) -> int: ...
def bin(self, arg0: int) -> int: ...
12 changes: 6 additions & 6 deletions src/boost_histogram/_core/axis/transform.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ from typing import Any, Callable, TypeVar

T = TypeVar("T", bound="_BaseTransform")

def _log_fn(v: float, /) -> float: ...
def _exp_fn(v: float, /) -> float: ...
def _sqrt_fn(v: float, /) -> float: ...
def _sq_fn(v: float, /) -> float: ...
def _log_fn(arg0: float) -> float: ...
def _exp_fn(arg0: float) -> float: ...
def _sqrt_fn(arg0: float) -> float: ...
def _sq_fn(arg0: float) -> float: ...

class _BaseTransform:
def forward(self, value: float, /) -> float: ...
def reverse(self, value: float, /) -> float: ...
def forward(self, arg0: float) -> float: ...
def reverse(self, arg0: float) -> float: ...
def __repr__(self) -> str: ...
def __copy__(self: T) -> T: ...
def __deepcopy__(self: T, memo: Any) -> T: ...
Expand Down