mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 18:13:36 +08:00
Bump mypy to 1.11.1 (#12463)
This commit is contained in:
@@ -1023,7 +1023,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
@overload
|
||||
def bzpopmin(self, keys: _Key | Iterable[_Key], timeout: float) -> tuple[_StrType, _StrType, float] | None: ...
|
||||
@overload
|
||||
def zrange(
|
||||
def zrange( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
start: int,
|
||||
@@ -1037,7 +1037,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
num: int | None = None,
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
def zrange(
|
||||
def zrange( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
start: int,
|
||||
@@ -1051,7 +1051,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
num: int | None = None,
|
||||
) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
def zrange(
|
||||
def zrange( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
start: int,
|
||||
@@ -1065,7 +1065,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
num: int | None = None,
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
def zrange(
|
||||
def zrange( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
start: int,
|
||||
@@ -1102,7 +1102,9 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
def zrevrange(self, name: _Key, start: int, end: int, withscores: Literal[True]) -> list[tuple[_StrType, float]]: ...
|
||||
def zrevrange( # type: ignore[overload-overlap]
|
||||
self, name: _Key, start: int, end: int, withscores: Literal[True]
|
||||
) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
def zrevrange(
|
||||
self, name: _Key, start: int, end: int, withscores: bool = False, score_cast_func: Callable[[Any], Any] = ...
|
||||
@@ -1126,7 +1128,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
self, name: _Key, max: _Value, min: _Value, start: int | None = None, num: int | None = None
|
||||
) -> list[_StrType]: ...
|
||||
@overload
|
||||
def zrangebyscore(
|
||||
def zrangebyscore( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
min: _Value,
|
||||
@@ -1138,7 +1140,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
def zrangebyscore(
|
||||
def zrangebyscore( # type: ignore[overload-overlap]
|
||||
self, name: _Key, min: _Value, max: _Value, start: int | None = None, num: int | None = None, *, withscores: Literal[True]
|
||||
) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
@@ -1153,7 +1155,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
score_cast_func: Callable[[_StrType], Any] = ...,
|
||||
) -> list[_StrType]: ...
|
||||
@overload
|
||||
def zrevrangebyscore(
|
||||
def zrevrangebyscore( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
max: _Value,
|
||||
@@ -1165,7 +1167,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
def zrevrangebyscore(
|
||||
def zrevrangebyscore( # type: ignore[overload-overlap]
|
||||
self, name: _Key, max: _Value, min: _Value, start: int | None = None, num: int | None = None, *, withscores: Literal[True]
|
||||
) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
@@ -1224,7 +1226,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
@overload
|
||||
async def bzpopmin(self, keys: _Key | Iterable[_Key], timeout: float) -> tuple[_StrType, _StrType, float] | None: ...
|
||||
@overload
|
||||
async def zrange(
|
||||
async def zrange( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
start: int,
|
||||
@@ -1238,7 +1240,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
num: int | None = None,
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
async def zrange(
|
||||
async def zrange( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
start: int,
|
||||
@@ -1252,7 +1254,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
num: int | None = None,
|
||||
) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
async def zrange(
|
||||
async def zrange( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
start: int,
|
||||
@@ -1267,7 +1269,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
num: int | None = None,
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
async def zrange(
|
||||
async def zrange( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
start: int,
|
||||
@@ -1305,7 +1307,9 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
async def zrevrange(self, name: _Key, start: int, end: int, withscores: Literal[True]) -> list[tuple[_StrType, float]]: ...
|
||||
async def zrevrange( # type: ignore[overload-overlap]
|
||||
self, name: _Key, start: int, end: int, withscores: Literal[True]
|
||||
) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
async def zrevrange(
|
||||
self, name: _Key, start: int, end: int, withscores: bool = False, score_cast_func: Callable[[Any], Any] = ...
|
||||
@@ -1329,7 +1333,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
self, name: _Key, max: _Value, min: _Value, start: int | None = None, num: int | None = None
|
||||
) -> list[_StrType]: ...
|
||||
@overload
|
||||
async def zrangebyscore(
|
||||
async def zrangebyscore( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
min: _Value,
|
||||
@@ -1341,7 +1345,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
async def zrangebyscore(
|
||||
async def zrangebyscore( # type: ignore[overload-overlap]
|
||||
self, name: _Key, min: _Value, max: _Value, start: int | None = None, num: int | None = None, *, withscores: Literal[True]
|
||||
) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
@@ -1356,7 +1360,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
score_cast_func: Callable[[_StrType], Any] = ...,
|
||||
) -> list[_StrType]: ...
|
||||
@overload
|
||||
async def zrevrangebyscore(
|
||||
async def zrevrangebyscore( # type: ignore[overload-overlap]
|
||||
self,
|
||||
name: _Key,
|
||||
max: _Value,
|
||||
@@ -1368,7 +1372,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
|
||||
) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
|
||||
@overload
|
||||
async def zrevrangebyscore(
|
||||
async def zrevrangebyscore( # type: ignore[overload-overlap]
|
||||
self, name: _Key, max: _Value, min: _Value, start: int | None = None, num: int | None = None, *, withscores: Literal[True]
|
||||
) -> list[tuple[_StrType, float]]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user