Skip to content
Open
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
2 changes: 1 addition & 1 deletion stubs/boltons/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "26.1.*"
version = "26.2.*"
upstream-repository = "https://github.com/mahmoud/boltons"
2 changes: 1 addition & 1 deletion stubs/boltons/boltons/cacheutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LRI(dict[_KT, _VT]):
@overload
def setdefault(self, key: _KT, default: _VT) -> _VT: ...

def update(self, E: SupportsKeysAndGetItem[_KT, _VT] | Iterable[tuple[_KT, _VT]], **F: _VT) -> None: ... # type: ignore[override]
def update(self, E: SupportsKeysAndGetItem[_KT, _VT] | Iterable[tuple[_KT, _VT]] = (), **F: _VT) -> None: ... # type: ignore[override]

class LRU(LRI[_KT, _VT]):
def __getitem__(self, key: _KT) -> _VT: ...
Expand Down
2 changes: 1 addition & 1 deletion stubs/boltons/boltons/funcutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class FunctionBuilder:
name: Incomplete
def __init__(self, name, **kw) -> None: ...
def get_sig_str(self, with_annotations: bool = True): ...
def get_invocation_str(self): ...
def get_invocation_str(self, target: Callable[..., object] | None = None) -> str: ...
@classmethod
def from_func(cls, func): ...
def get_func(self, execdict=None, add_source: bool = True, with_dict: bool = True): ...
Expand Down
8 changes: 6 additions & 2 deletions stubs/boltons/boltons/jsonutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ def reverse_iter_lines(
file_obj: IO[bytes], blocksize: int = 4096, preseek: bool = True, encoding: None = None
) -> Generator[bytes]: ...
@overload
def reverse_iter_lines(file_obj: IO[str], blocksize: int = 4096, preseek: bool = True, *, encoding: str) -> Generator[str]: ...
def reverse_iter_lines(
file_obj: IO[str], blocksize: int = 4096, preseek: bool = True, encoding: str | None = None
) -> Generator[str]: ...
@overload
def reverse_iter_lines(file_obj: IO[bytes], blocksize: int = 4096, preseek: bool = True, *, encoding: str) -> Generator[str]: ...
@overload
def reverse_iter_lines(file_obj: IO[str], blocksize: int, preseek: bool, encoding: str) -> Generator[str]: ...
def reverse_iter_lines(file_obj: IO[bytes], blocksize: int, preseek: bool, encoding: str) -> Generator[str]: ...

class JSONLIterator:
ignore_errors: bool
Expand Down
2 changes: 2 additions & 0 deletions stubs/boltons/boltons/statsutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Stats:
mean: _StatsProperty
max: _StatsProperty
min: _StatsProperty
mode: _StatsProperty
median: _StatsProperty
iqr: _StatsProperty
trimean: _StatsProperty
Expand All @@ -61,6 +62,7 @@ def describe(

mean: Incomplete
median: Incomplete
mode: Incomplete
iqr: Incomplete
trimean: Incomplete
variance: Incomplete
Expand Down
2 changes: 2 additions & 0 deletions stubs/boltons/boltons/strutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ def multi_replace(text: str, sub_map: dict[str, str], **kwargs) -> str: ...
def unwrap_text(text: str, ending: str | None = "\n\n") -> str: ...
def removeprefix(text: str, prefix: str) -> str: ...
def human_readable_list(items: Sequence[str], delimiter: str = ",", conjunction: str = "and", *, oxford: bool = True) -> str: ...
def ellipsize(text: str, max_len: int = 160, *, ellipsis: str = "…") -> str: ...

__all__ = [
"ellipsize",
"camel2under",
"under2camel",
"slugify",
Expand Down
1 change: 1 addition & 0 deletions stubs/boltons/boltons/timeutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class USTimeZone(tzinfo):
def tzname(self, dt: datetime | None) -> str: ...
def utcoffset(self, dt: datetime | None) -> timedelta: ...
def dst(self, dt: datetime | None) -> timedelta: ...
def fromutc(self, dt: datetime) -> datetime: ...

Eastern: USTimeZone
Central: USTimeZone
Expand Down
Loading