mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Bump boltons to 24.0.* (#11804)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = "23.1.*"
|
||||
version = "24.0.*"
|
||||
upstream_repository = "https://github.com/mahmoud/boltons"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
ECO_VERSION: str
|
||||
PY_GT_2: bool
|
||||
HAVE_URANDOM: bool
|
||||
INSTANCE_ID: str
|
||||
IS_64BIT: bool
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -80,6 +80,8 @@ VALUE: Incomplete
|
||||
SPREV: Incomplete
|
||||
SNEXT: Incomplete
|
||||
|
||||
OMD = OrderedMultiDict
|
||||
|
||||
class QueryParamDict(OrderedMultiDict[Incomplete, Incomplete]):
|
||||
@classmethod
|
||||
def from_text(cls, query_string): ...
|
||||
|
||||
Reference in New Issue
Block a user