Bump boltons to 24.0.* (#11804)

This commit is contained in:
Avasam
2024-04-22 09:03:38 -04:00
committed by GitHub
parent ae5c45b983
commit 0deaca4862
7 changed files with 22 additions and 26 deletions

View File

@@ -1,22 +1,6 @@
# These names exist in __all__, but have no definition:
boltons.strutils.int_list_complement
boltons.strutils.int_list_to_int_tuples
# Internal compatibility aliases
boltons.cacheutils.basestring
boltons.funcutils.basestring
boltons.funcutils.make_method
boltons.iterutils.basestring
boltons.cacheutils.bytes
boltons.cacheutils.str
boltons.cacheutils.unicode
boltons.cacheutils.xrange
boltons.deprutils.ModuleType.__dict__
boltons.deprutils.ModuleType.__getattr__
boltons.iterutils.unicode
boltons.iterutils.xrange
boltons.mathutils.unicode
boltons.urlutils.OMD
boltons.urlutils.unichr
boltons.urlutils.unicode

View File

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

View File

@@ -1,7 +1,6 @@
from typing import Any
ECO_VERSION: str
PY_GT_2: bool
HAVE_URANDOM: bool
INSTANCE_ID: str
IS_64BIT: bool

View File

@@ -4,6 +4,21 @@ from functools import total_ordering as total_ordering
NO_DEFAULT: Incomplete
def inspect_formatargspec(
args,
varargs=None,
varkw=None,
defaults=None,
kwonlyargs=(),
kwonlydefaults={},
annotations={},
formatarg=...,
formatvarargs=...,
formatvarkw=...,
formatvalue=...,
formatreturns=...,
formatannotation=...,
): ...
def get_module_callables(mod, ignore: Incomplete | None = None): ...
def mro_items(type_obj): ...
def dir_dict(obj, raise_exc: bool = False): ...

View File

@@ -2,8 +2,6 @@ import abc
from _typeshed import Incomplete
from abc import abstractmethod
text_type = str
binary_type = bytes
READ_CHUNK_SIZE: int
EINVAL: Incomplete

View File

@@ -5,8 +5,6 @@ from typing import Any, TypeVar
_KT = TypeVar("_KT")
_VT = TypeVar("_VT")
unichr = chr
def camel2under(camel_string: str) -> str: ...
def under2camel(under_string: str) -> str: ...
def slugify(text: str, delim: str = "_", lower: bool = True, ascii: bool = False) -> str: ...
@@ -49,6 +47,10 @@ def args2sh(args: list[str], sep: str = " ") -> str: ...
def args2cmd(args: list[str], sep: str = " ") -> str: ...
def parse_int_list(range_string: str, delim: str = ",", range_delim: str = "-") -> list[int]: ...
def format_int_list(int_list: list[int], delim: str = ",", range_delim: str = "-", delim_space: bool = False) -> str: ...
def complement_int_list(
range_string: str, range_start: int = 0, range_end: int | None = None, delim: str = ",", range_delim: str = "-"
) -> str: ...
def int_ranges_from_int_list(range_string: str, delim: str = ",", range_delim: str = "-") -> tuple[int, int]: ...
class MultiReplace:
group_map: dict[str, str]
@@ -58,7 +60,3 @@ class MultiReplace:
def multi_replace(text: str, sub_map: dict[str, str], **kwargs) -> str: ...
def unwrap_text(text: str, ending: str = "\n\n") -> str: ...
# Names in __all__ with no definition:
# int_list_complement
# int_list_to_int_tuples

View File

@@ -80,6 +80,8 @@ VALUE: Incomplete
SPREV: Incomplete
SNEXT: Incomplete
OMD = OrderedMultiDict
class QueryParamDict(OrderedMultiDict[Incomplete, Incomplete]):
@classmethod
def from_text(cls, query_string): ...