8000 Bump boltons to 24.0.* (#11804) · python/typeshed@0deaca4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0deaca4

Browse files
authored
Bump boltons to 24.0.* (#11804)
1 parent ae5c45b commit 0deaca4

File tree

7 files changed

+22
-26
lines changed

7 files changed

+22
-26
lines changed
Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1-
# These names exist in __all__, but have no definition:
2-
boltons.strutils.int_list_complement
3-
boltons.strutils.int_list_to_int_tuples
4-
51
# Internal compatibility aliases
6-
boltons.cacheutils.basestring
7-
boltons.funcutils.basestring
82
boltons.funcutils.make_method
9-
boltons.iterutils.basestring
10-
11-
boltons.cacheutils.bytes
12-
boltons.cacheutils.str
13-
boltons.cacheutils.unicode
14-
boltons.cacheutils.xrange
153
boltons.deprutils.ModuleType.__dict__
164
boltons.deprutils.ModuleType.__getattr__
17-
boltons.iterutils.unicode
18-
boltons.iterutils.xrange
195
boltons.mathutils.unicode
20-
boltons.urlutils.OMD
21-
boltons.urlutils.unichr
226
boltons.urlutils.unicode

stubs/boltons/METADATA.toml

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

stubs/boltons/boltons/ecoutils.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Any
22

33
ECO_VERSION: str
4-
PY_GT_2: bool
54
HAVE_URANDOM: bool
65
INSTANCE_ID: str
76
IS_64BIT: bool

stubs/boltons/boltons/funcutils.pyi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ from functools import total_ordering as total_ordering
44

55
NO_DEFAULT: Incomplete
66

7+
def inspect_formatargspec(
8+
args,
9+
varargs=None,
10+
varkw=None,
11+
defaults=None,
12+
kwonlyargs=(),
13+
kwonlydefaults={},
14+
annotations={},
15+
formatarg=...,
16+
formatvarargs=...,
17+
formatvarkw=...,
18+
formatvalue=...,
19+
formatreturns=...,
20+
formatannotation=...,
21+
): ...
722
def get_module_callables(mod, ignore: Incomplete | None = None): ...
823
def mro_items(type_obj): ...
924
def dir_dict(obj, raise_exc: bool = False): ...

stubs/boltons/boltons/ioutils.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import abc
22
from _typeshed import Incomplete
33
from abc import abstractmethod
44

5-
text_type = str
6-
binary_type = bytes
75
READ_CHUNK_SIZE: int
86
EINVAL: Incomplete
97

stubs/boltons/boltons/strutils.pyi

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ from typing import Any, TypeVar
55
_KT = TypeVar("_KT")
66
_VT = TypeVar("_VT")
77

8-
unichr = chr
9-
108
def camel2under(camel_string: str) -> str: ...
119
def under2camel(under_string: str) -> str: ...
1210
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: ...
4947
def args2cmd(args: list[str], sep: str = " ") -> str: ...
5048
def parse_int_list(range_string: str, delim: str = ",", range_delim: str = "-") -> list[int]: ...
5149
def format_int_list(int_list: list[int], delim: str = ",", range_delim: str = "-", delim_space: bool = False) -> str: ...
50+
def complement_int_list(
51+
range_string: str, range_start: int = 0, range_end: int | None = None, delim: str = ",", range_delim: str = "-"
52+
) -> str: ...
53+
def int_ranges_from_int_list(range_string: str, delim: str = ",", range_delim: str = "-") -> tuple[int, int]: ...
5254

5355
class MultiReplace:
5456
group_map: dict[str, str]
@@ -58,7 +60,3 @@ class MultiReplace:
5860

5961
def multi_replace(text: str, sub_map: dict[str, str], **kwargs) -> str: ...
6062
def unwrap_text(text: str, ending: str = "\n\n") -> str: ...
61-
62-
# Names in __all__ with no definition:
63-
# int_list_complement
64-
# int_list_to_int_tuples

stubs/boltons/boltons/urlutils.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ VALUE: Incomplete
8080
SPREV: Incomplete
8181
SNEXT: Incomplete
8282

83+
OMD = OrderedMultiDict
84+
8385
class QueryParamDict(OrderedMultiDict[Incomplete, Incomplete]):
8486
@classmethod
8587
def from_text(cls, query_string): ...

0 commit comments

Comments
 (0)
0