Skip to content

Commit af4df4e

Browse files
Bump boltons to 24.1.* (#12970)
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
1 parent 986e9e3 commit af4df4e

File tree

6 files changed

+19
-13
lines changed

6 files changed

+19
-13
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
# Internal compatibility aliases
2-
boltons.funcutils.make_method
3-
boltons.deprutils.ModuleType.__dict__
4-
boltons.deprutils.ModuleType.__getattr__
5-
boltons.mathutils.unicode
6-
boltons.urlutils.unicode
1+
boltons.funcutils.CachedInstancePartial.__partialmethod__
2+
boltons.funcutils.InstancePartial.__partialmethod__

stubs/boltons/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "24.0.*"
1+
version = "24.1.*"
22
upstream_repository = "https://github.com/mahmoud/boltons"

stubs/boltons/boltons/fileutils.pyi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ class AtomicSaver:
4141
) -> None: ...
4242

4343
def iter_find_files(
44-
directory: str, patterns: str | Iterable[str], ignored: str | Iterable[str] | None = None, include_dirs: bool = False
44+
directory: str,
45+
patterns: str | Iterable[str],
46+
ignored: str | Iterable[str] | None = None,
47+
include_dirs: bool = False,
48+
max_depth: int | None = None,
4549
) -> Generator[str, None, None]: ...
4650
def copy_tree(
4751
src: StrOrBytesPath,

stubs/boltons/boltons/iterutils.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class PathAccessError(KeyError, IndexError, TypeError):
5151
def __init__(self, exc, seg, path) -> None: ...
5252

5353
def get_path(root, path, default=...): ...
54-
def research(root, query=..., reraise: bool = False): ...
54+
def research(root, query=..., reraise: bool = False, enter=...): ...
5555

5656
class GUIDerator:
5757
size: Incomplete

stubs/boltons/boltons/timeutils.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from collections.abc import Generator
22
from datetime import date, datetime, timedelta, tzinfo
33

4-
def total_seconds(td: timedelta) -> float: ...
4+
total_seconds = timedelta.total_seconds
5+
56
def dt_to_timestamp(dt: datetime) -> int: ...
67
def isoparse(iso_str: str) -> datetime: ...
78
def parse_timedelta(text: str) -> timedelta: ...
@@ -30,7 +31,6 @@ class ConstantTZInfo(tzinfo):
3031

3132
UTC: ConstantTZInfo
3233
EPOCH_AWARE: datetime
33-
EPOCH_NAIVE: datetime
3434

3535
class LocalTZInfo(tzinfo):
3636
def is_dst(self, dt: datetime) -> bool: ...

stubs/boltons/boltons/typeutils.pyi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
from typing import Any
1+
from typing import Any, Literal, Protocol
2+
from typing_extensions import Self
23

3-
def make_sentinel(name: str = "_MISSING", var_name: str | None = None) -> object: ...
4+
class _Sentinel(Protocol):
5+
def __bool__(self) -> Literal[False]: ...
6+
def __copy__(self) -> Self: ...
7+
def __deepcopy__(self, _memo) -> Self: ...
8+
9+
def make_sentinel(name: str = "_MISSING", var_name: str | None = None) -> _Sentinel: ...
410
def issubclass(subclass: type, baseclass: type) -> bool: ...
511
def get_all_subclasses(cls: type) -> list[type]: ...
612

0 commit comments

Comments
 (0)