Bump boltons to 24.1.* (#12970)

Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
Danny Yang
2024-11-12 08:11:47 -05:00
committed by GitHub
parent 986e9e3830
commit af4df4eb24
6 changed files with 19 additions and 13 deletions

View File

@@ -1,6 +1,2 @@
# Internal compatibility aliases
boltons.funcutils.make_method
boltons.deprutils.ModuleType.__dict__
boltons.deprutils.ModuleType.__getattr__
boltons.mathutils.unicode
boltons.urlutils.unicode
boltons.funcutils.CachedInstancePartial.__partialmethod__
boltons.funcutils.InstancePartial.__partialmethod__

View File

@@ -1,2 +1,2 @@
version = "24.0.*"
version = "24.1.*"
upstream_repository = "https://github.com/mahmoud/boltons"

View File

@@ -41,7 +41,11 @@ class AtomicSaver:
) -> None: ...
def iter_find_files(
directory: str, patterns: str | Iterable[str], ignored: str | Iterable[str] | None = None, include_dirs: bool = False
directory: str,
patterns: str | Iterable[str],
ignored: str | Iterable[str] | None = None,
include_dirs: bool = False,
max_depth: int | None = None,
) -> Generator[str, None, None]: ...
def copy_tree(
src: StrOrBytesPath,

View File

@@ -51,7 +51,7 @@ class PathAccessError(KeyError, IndexError, TypeError):
def __init__(self, exc, seg, path) -> None: ...
def get_path(root, path, default=...): ...
def research(root, query=..., reraise: bool = False): ...
def research(root, query=..., reraise: bool = False, enter=...): ...
class GUIDerator:
size: Incomplete

View File

@@ -1,7 +1,8 @@
from collections.abc import Generator
from datetime import date, datetime, timedelta, tzinfo
def total_seconds(td: timedelta) -> float: ...
total_seconds = timedelta.total_seconds
def dt_to_timestamp(dt: datetime) -> int: ...
def isoparse(iso_str: str) -> datetime: ...
def parse_timedelta(text: str) -> timedelta: ...
@@ -30,7 +31,6 @@ class ConstantTZInfo(tzinfo):
UTC: ConstantTZInfo
EPOCH_AWARE: datetime
EPOCH_NAIVE: datetime
class LocalTZInfo(tzinfo):
def is_dst(self, dt: datetime) -> bool: ...

View File

@@ -1,6 +1,12 @@
from typing import Any
from typing import Any, Literal, Protocol
from typing_extensions import Self
def make_sentinel(name: str = "_MISSING", var_name: str | None = None) -> object: ...
class _Sentinel(Protocol):
def __bool__(self) -> Literal[False]: ...
def __copy__(self) -> Self: ...
def __deepcopy__(self, _memo) -> Self: ...
def make_sentinel(name: str = "_MISSING", var_name: str | None = None) -> _Sentinel: ...
def issubclass(subclass: type, baseclass: type) -> bool: ...
def get_all_subclasses(cls: type) -> list[type]: ...