Skip to content

Commit

Permalink
Bump boltons to 24.0.* (#11804)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Apr 22, 2024
1 parent ae5c45b commit 0deaca4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 26 deletions.
16 changes: 0 additions & 16 deletions stubs/boltons/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
@@ -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
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 = "23.1.*"
version = "24.0.*"
upstream_repository = "https://github.com/mahmoud/boltons"
1 change: 0 additions & 1 deletion stubs/boltons/boltons/ecoutils.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Any

ECO_VERSION: str
PY_GT_2: bool
HAVE_URANDOM: bool
INSTANCE_ID: str
IS_64BIT: bool
Expand Down
15 changes: 15 additions & 0 deletions stubs/boltons/boltons/funcutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down
2 changes: 0 additions & 2 deletions stubs/boltons/boltons/ioutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 4 additions & 6 deletions stubs/boltons/boltons/strutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down Expand Up @@ -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]
Expand All @@ -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
2 changes: 2 additions & 0 deletions stubs/boltons/boltons/urlutils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ VALUE: Incomplete
SPREV: Incomplete
SNEXT: Incomplete

OMD = OrderedMultiDict

class QueryParamDict(OrderedMultiDict[Incomplete, Incomplete]):
@classmethod
def from_text(cls, query_string): ...
Expand Down

0 comments on commit 0deaca4

Please sign in to comment.