Skip to content
Open
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
8 changes: 5 additions & 3 deletions stubs/boltons/boltons/statsutils.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from _typeshed import ConvertibleToFloat, FloatInt, Incomplete
from collections.abc import Callable, Iterable, Iterator
from typing import Any, Literal, overload
from collections.abc import Callable, Iterable, Iterator, Sequence
from typing import Any, Literal, TypeVar, overload
from typing_extensions import Self

_Bin = TypeVar("_Bin")

class _StatsProperty:
name: str
func: Callable[..., Any]
Expand Down Expand Up @@ -74,5 +76,5 @@ kurtosis: Incomplete
pearson_type: Incomplete

def format_histogram_counts(
bin_counts: list[FloatInt], width: int | None = None, format_bin: Callable[..., Any] | None = None
bin_counts: Sequence[tuple[_Bin, int]], width: int | None = None, format_bin: Callable[[_Bin], object] | None = None
) -> str: ...
Loading