mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-20 15:29:46 +08:00
Replace Any with Incomplete in many places (#9558)
This commit is contained in:
@@ -140,7 +140,7 @@ class PubSub:
|
||||
connection_pool: ConnectionPool,
|
||||
shard_hint: str | None = ...,
|
||||
ignore_subscribe_messages: bool = ...,
|
||||
encoder: Any | None = ...,
|
||||
encoder: Incomplete | None = ...,
|
||||
) -> None: ...
|
||||
async def __aenter__(self): ...
|
||||
async def __aexit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||
@@ -159,7 +159,7 @@ class PubSub:
|
||||
def unsubscribe(self, *args) -> Awaitable[Any]: ...
|
||||
def listen(self) -> AsyncIterator[Any]: ...
|
||||
async def get_message(self, ignore_subscribe_messages: bool = ..., timeout: float = ...): ...
|
||||
def ping(self, message: Any | None = ...) -> Awaitable[Any]: ...
|
||||
def ping(self, message: Incomplete | None = ...) -> Awaitable[Any]: ...
|
||||
async def handle_message(self, response, ignore_subscribe_messages: bool = ...): ...
|
||||
async def run(self, *, exception_handler: PSWorkerThreadExcHandlerT | None = ..., poll_timeout: float = ...) -> None: ...
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
# TODO: define and use:
|
||||
# from redis.asyncio.cluster import ClusterNode
|
||||
|
||||
class CommandsParser:
|
||||
async def initialize(self, node: Any | None = ...) -> None: ... # TODO: ClusterNode
|
||||
async def initialize(self, node: Incomplete | None = ...) -> None: ... # TODO: ClusterNode
|
||||
async def get_keys(self, *args: Any) -> tuple[str, ...] | None: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import AsyncIterator, Iterable, Mapping, Sequence
|
||||
from typing import Any
|
||||
|
||||
@@ -38,7 +39,7 @@ class Sentinel(AsyncSentinelCommands):
|
||||
min_other_sentinels: Any
|
||||
connection_kwargs: Any
|
||||
def __init__(
|
||||
self, sentinels, min_other_sentinels: int = ..., sentinel_kwargs: Any | None = ..., **connection_kwargs
|
||||
self, sentinels, min_other_sentinels: int = ..., sentinel_kwargs: Incomplete | None = ..., **connection_kwargs
|
||||
) -> None: ...
|
||||
async def execute_command(self, *args, **kwargs): ...
|
||||
def check_master_state(self, state: dict[Any, Any], service_name: str) -> bool: ...
|
||||
|
||||
@@ -172,14 +172,14 @@ class Redis(AbstractRedis, RedisModuleCommands, CoreCommands[_StrType], Sentinel
|
||||
ssl_certfile: str | None = ...,
|
||||
ssl_cert_reqs: str | int | None = ...,
|
||||
ssl_ca_certs: str | None = ...,
|
||||
ssl_ca_path: Any | None = ...,
|
||||
ssl_ca_data: Any | None = ...,
|
||||
ssl_ca_path: Incomplete | None = ...,
|
||||
ssl_ca_data: Incomplete | None = ...,
|
||||
ssl_check_hostname: bool = ...,
|
||||
ssl_password: Any | None = ...,
|
||||
ssl_password: Incomplete | None = ...,
|
||||
ssl_validate_ocsp: bool = ...,
|
||||
ssl_validate_ocsp_stapled: bool = ..., # added in 4.1.1
|
||||
ssl_ocsp_context: Any | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_expected_cert: Any | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_context: Incomplete | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_expected_cert: Incomplete | None = ..., # added in 4.1.1
|
||||
max_connections: int | None = ...,
|
||||
single_connection_client: bool = ...,
|
||||
health_check_interval: float = ...,
|
||||
@@ -214,13 +214,13 @@ class Redis(AbstractRedis, RedisModuleCommands, CoreCommands[_StrType], Sentinel
|
||||
ssl_certfile: str | None = ...,
|
||||
ssl_cert_reqs: str | int | None = ...,
|
||||
ssl_ca_certs: str | None = ...,
|
||||
ssl_ca_data: Any | None = ...,
|
||||
ssl_ca_data: Incomplete | None = ...,
|
||||
ssl_check_hostname: bool = ...,
|
||||
ssl_password: Any | None = ...,
|
||||
ssl_password: Incomplete | None = ...,
|
||||
ssl_validate_ocsp: bool = ...,
|
||||
ssl_validate_ocsp_stapled: bool = ..., # added in 4.1.1
|
||||
ssl_ocsp_context: Any | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_expected_cert: Any | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_context: Incomplete | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_expected_cert: Incomplete | None = ..., # added in 4.1.1
|
||||
max_connections: int | None = ...,
|
||||
single_connection_client: bool = ...,
|
||||
health_check_interval: float = ...,
|
||||
@@ -254,13 +254,13 @@ class Redis(AbstractRedis, RedisModuleCommands, CoreCommands[_StrType], Sentinel
|
||||
ssl_certfile: str | None = ...,
|
||||
ssl_cert_reqs: str | int | None = ...,
|
||||
ssl_ca_certs: str | None = ...,
|
||||
ssl_ca_data: Any | None = ...,
|
||||
ssl_ca_data: Incomplete | None = ...,
|
||||
ssl_check_hostname: bool = ...,
|
||||
ssl_password: Any | None = ...,
|
||||
ssl_password: Incomplete | None = ...,
|
||||
ssl_validate_ocsp: bool = ...,
|
||||
ssl_validate_ocsp_stapled: bool = ..., # added in 4.1.1
|
||||
ssl_ocsp_context: Any | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_expected_cert: Any | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_context: Incomplete | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_expected_cert: Incomplete | None = ..., # added in 4.1.1
|
||||
max_connections: int | None = ...,
|
||||
single_connection_client: bool = ...,
|
||||
health_check_interval: float = ...,
|
||||
@@ -334,7 +334,11 @@ class PubSub:
|
||||
health_check_response_b: bytes
|
||||
health_check_response: list[str] | list[bytes]
|
||||
def __init__(
|
||||
self, connection_pool, shard_hint: Any | None = ..., ignore_subscribe_messages: bool = ..., encoder: Any | None = ...
|
||||
self,
|
||||
connection_pool,
|
||||
shard_hint: Incomplete | None = ...,
|
||||
ignore_subscribe_messages: bool = ...,
|
||||
encoder: Incomplete | None = ...,
|
||||
) -> None: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(
|
||||
@@ -360,7 +364,7 @@ class PubSub:
|
||||
def listen(self): ...
|
||||
def get_message(self, ignore_subscribe_messages: bool = ..., timeout: float = ...) -> dict[str, Any] | None: ...
|
||||
def handle_message(self, response, ignore_subscribe_messages: bool = ...) -> dict[str, Any] | None: ...
|
||||
def run_in_thread(self, sleep_time: float = ..., daemon: bool = ..., exception_handler: Any | None = ...): ...
|
||||
def run_in_thread(self, sleep_time: float = ..., daemon: bool = ..., exception_handler: Incomplete | None = ...): ...
|
||||
def ping(self, message: _Value | None = ...) -> None: ...
|
||||
|
||||
class PubSubWorkerThread(threading.Thread):
|
||||
@@ -368,7 +372,7 @@ class PubSubWorkerThread(threading.Thread):
|
||||
pubsub: Any
|
||||
sleep_time: Any
|
||||
exception_handler: Any
|
||||
def __init__(self, pubsub, sleep_time, daemon: bool = ..., exception_handler: Any | None = ...) -> None: ...
|
||||
def __init__(self, pubsub, sleep_time, daemon: bool = ..., exception_handler: Incomplete | None = ...) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
|
||||
@@ -499,7 +503,7 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
def randomkey(self) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def rename(self, src, dst) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def renamenx(self, src, dst) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def restore(self, name, ttl, value, replace: bool = ..., absttl: bool = ..., idletime: Any | None = ..., frequency: Any | None = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def restore(self, name, ttl, value, replace: bool = ..., absttl: bool = ..., idletime: Incomplete | None = ..., frequency: Incomplete | None = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def set( # type: ignore[override]
|
||||
self,
|
||||
name: _Key,
|
||||
@@ -510,8 +514,8 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
xx: bool = ...,
|
||||
keepttl: bool = ...,
|
||||
get: bool = ...,
|
||||
exat: Any | None = ...,
|
||||
pxat: Any | None = ...,
|
||||
exat: Incomplete | None = ...,
|
||||
pxat: Incomplete | None = ...,
|
||||
) -> Pipeline[_StrType]: ...
|
||||
def __setitem__(self, name, value) -> None: ...
|
||||
def setbit(self, name: _Key, offset: int, value: int) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
@@ -589,7 +593,7 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
def sunion(self, keys: _Key | Iterable[_Key], *args: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def sunionstore(self, dest: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xack(self, name, groupname, *ids) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xadd(self, name, fields, id=..., maxlen=..., approximate: bool = ..., nomkstream: bool = ..., minid: Any | None = ..., limit: int | None = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xadd(self, name, fields, id=..., maxlen=..., approximate: bool = ..., nomkstream: bool = ..., minid: Incomplete | None = ..., limit: int | None = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xclaim(
|
||||
self, name, groupname, consumername, min_idle_time, message_ids, idle=..., time=..., retrycount=..., force=..., justid=...
|
||||
) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
@@ -603,7 +607,7 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
def xinfo_stream(self, name, full: bool = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xlen(self, name: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xpending(self, name, groupname) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xpending_range(self, name: _Key, groupname, min, max, count: int, consumername: Any | None = ..., idle: int | None = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xpending_range(self, name: _Key, groupname, min, max, count: int, consumername: Incomplete | None = ..., idle: int | None = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xrange(self, name, min=..., max=..., count=...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xread(self, streams, count=..., block=...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def xreadgroup(self, groupname, consumername, streams, count=..., block=..., noack=...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
@@ -617,8 +621,8 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
xx: bool = ...,
|
||||
ch: bool = ...,
|
||||
incr: bool = ...,
|
||||
gt: Any | None = ...,
|
||||
lt: Any | None = ...,
|
||||
gt: Incomplete | None = ...,
|
||||
lt: Incomplete | None = ...,
|
||||
) -> Pipeline[_StrType]: ...
|
||||
def zcard(self, name: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def zcount(self, name: _Key, min: _Value, max: _Value) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
@@ -690,14 +694,14 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
def hlen(self, name: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
@overload # type: ignore[override]
|
||||
def hset(
|
||||
self, name: _Key, key: _Key, value: _Value, mapping: Mapping[_Key, _Value] | None = ..., items: Any | None = ...
|
||||
self, name: _Key, key: _Key, value: _Value, mapping: Mapping[_Key, _Value] | None = ..., items: Incomplete | None = ...
|
||||
) -> Pipeline[_StrType]: ...
|
||||
@overload # type: ignore[override]
|
||||
def hset(
|
||||
self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value], items: Any | None = ...
|
||||
self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value], items: Incomplete | None = ...
|
||||
) -> Pipeline[_StrType]: ...
|
||||
@overload # type: ignore[override]
|
||||
def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value], items: Any | None = ...) -> Pipeline[_StrType]: ...
|
||||
def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value], items: Incomplete | None = ...) -> Pipeline[_StrType]: ...
|
||||
def hsetnx(self, name: _Key, key: _Key, value: _Value) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def hmset(self, name: _Key, mapping: Mapping[_Key, _Value]) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def hmget(self, name: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
@@ -706,7 +710,7 @@ class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
def eval(self, script, numkeys, *keys_and_args) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def evalsha(self, sha, numkeys, *keys_and_args) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def script_exists(self, *args) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def script_flush(self, sync_type: Any | None = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def script_flush(self, sync_type: Incomplete | None = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def script_kill(self) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def script_load(self, script) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
def pubsub_channels(self, pattern: _Key = ...) -> Pipeline[_StrType]: ... # type: ignore[override]
|
||||
|
||||
@@ -91,9 +91,9 @@ class RedisCluster(AbstractRedisCluster, RedisClusterCommands[_StrType], Generic
|
||||
def get_node_from_key(self, key: _Encodable, replica: bool = ...) -> ClusterNode | None: ...
|
||||
def get_default_node(self) -> ClusterNode | None: ...
|
||||
def set_default_node(self, node: ClusterNode | None) -> bool: ...
|
||||
def monitor(self, target_node: Any | None = ...): ...
|
||||
def pubsub(self, node: Any | None = ..., host: Any | None = ..., port: Any | None = ..., **kwargs): ...
|
||||
def pipeline(self, transaction: Any | None = ..., shard_hint: Any | None = ...): ...
|
||||
def monitor(self, target_node: Incomplete | None = ...): ...
|
||||
def pubsub(self, node: Incomplete | None = ..., host: Incomplete | None = ..., port: Incomplete | None = ..., **kwargs): ...
|
||||
def pipeline(self, transaction: Incomplete | None = ..., shard_hint: Incomplete | None = ...): ...
|
||||
def lock(
|
||||
self,
|
||||
name: str,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
BF_RESERVE: str
|
||||
BF_ADD: str
|
||||
@@ -44,18 +44,18 @@ TDIGEST_MAX: str
|
||||
TDIGEST_INFO: str
|
||||
|
||||
class BFCommands:
|
||||
def create(self, key, errorRate, capacity, expansion: Any | None = ..., noScale: Any | None = ...): ...
|
||||
def create(self, key, errorRate, capacity, expansion: Incomplete | None = ..., noScale: Incomplete | None = ...): ...
|
||||
def add(self, key, item): ...
|
||||
def madd(self, key, *items): ...
|
||||
def insert(
|
||||
self,
|
||||
key,
|
||||
items,
|
||||
capacity: Any | None = ...,
|
||||
error: Any | None = ...,
|
||||
noCreate: Any | None = ...,
|
||||
expansion: Any | None = ...,
|
||||
noScale: Any | None = ...,
|
||||
capacity: Incomplete | None = ...,
|
||||
error: Incomplete | None = ...,
|
||||
noCreate: Incomplete | None = ...,
|
||||
expansion: Incomplete | None = ...,
|
||||
noScale: Incomplete | None = ...,
|
||||
): ...
|
||||
def exists(self, key, item): ...
|
||||
def mexists(self, key, *items): ...
|
||||
@@ -65,12 +65,17 @@ class BFCommands:
|
||||
|
||||
class CFCommands:
|
||||
def create(
|
||||
self, key, capacity, expansion: Any | None = ..., bucket_size: Any | None = ..., max_iterations: Any | None = ...
|
||||
self,
|
||||
key,
|
||||
capacity,
|
||||
expansion: Incomplete | None = ...,
|
||||
bucket_size: Incomplete | None = ...,
|
||||
max_iterations: Incomplete | None = ...,
|
||||
): ...
|
||||
def add(self, key, item): ...
|
||||
def addnx(self, key, item): ...
|
||||
def insert(self, key, items, capacity: Any | None = ..., nocreate: Any | None = ...): ...
|
||||
def insertnx(self, key, items, capacity: Any | None = ..., nocreate: Any | None = ...): ...
|
||||
def insert(self, key, items, capacity: Incomplete | None = ..., nocreate: Incomplete | None = ...): ...
|
||||
def insertnx(self, key, items, capacity: Incomplete | None = ..., nocreate: Incomplete | None = ...): ...
|
||||
def exists(self, key, item): ...
|
||||
def delete(self, key, item): ...
|
||||
def count(self, key, item): ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Generic
|
||||
from _typeshed import Incomplete
|
||||
from typing import Generic
|
||||
|
||||
from .core import ACLCommands, DataAccessCommands, ManagementCommands, PubSubCommands, _StrType
|
||||
|
||||
@@ -24,7 +25,7 @@ class ClusterDataAccessCommands(DataAccessCommands[_StrType], Generic[_StrType])
|
||||
specific_argument: str = ...,
|
||||
len: bool = ...,
|
||||
idx: bool = ...,
|
||||
minmatchlen: Any | None = ...,
|
||||
minmatchlen: Incomplete | None = ...,
|
||||
withmatchlen: bool = ...,
|
||||
**kwargs,
|
||||
): ...
|
||||
@@ -41,20 +42,20 @@ class RedisClusterCommands(
|
||||
def cluster_countkeysinslot(self, slot_id): ...
|
||||
def cluster_count_failure_report(self, node_id): ...
|
||||
def cluster_delslots(self, *slots): ...
|
||||
def cluster_failover(self, target_node, option: Any | None = ...): ...
|
||||
def cluster_info(self, target_nodes: Any | None = ...): ...
|
||||
def cluster_failover(self, target_node, option: Incomplete | None = ...): ...
|
||||
def cluster_info(self, target_nodes: Incomplete | None = ...): ...
|
||||
def cluster_keyslot(self, key): ...
|
||||
def cluster_meet(self, host, port, target_nodes: Any | None = ...): ...
|
||||
def cluster_meet(self, host, port, target_nodes: Incomplete | None = ...): ...
|
||||
def cluster_nodes(self): ...
|
||||
def cluster_replicate(self, target_nodes, node_id): ...
|
||||
def cluster_reset(self, soft: bool = ..., target_nodes: Any | None = ...): ...
|
||||
def cluster_save_config(self, target_nodes: Any | None = ...): ...
|
||||
def cluster_reset(self, soft: bool = ..., target_nodes: Incomplete | None = ...): ...
|
||||
def cluster_save_config(self, target_nodes: Incomplete | None = ...): ...
|
||||
def cluster_get_keys_in_slot(self, slot, num_keys): ...
|
||||
def cluster_set_config_epoch(self, epoch, target_nodes: Any | None = ...): ...
|
||||
def cluster_set_config_epoch(self, epoch, target_nodes: Incomplete | None = ...): ...
|
||||
def cluster_setslot(self, target_node, node_id, slot_id, state): ...
|
||||
def cluster_setslot_stable(self, slot_id): ...
|
||||
def cluster_replicas(self, node_id, target_nodes: Any | None = ...): ...
|
||||
def cluster_slots(self, target_nodes: Any | None = ...): ...
|
||||
def cluster_replicas(self, node_id, target_nodes: Incomplete | None = ...): ...
|
||||
def cluster_slots(self, target_nodes: Incomplete | None = ...): ...
|
||||
read_from_replicas: bool
|
||||
def readonly(self, target_nodes: Any | None = ...): ...
|
||||
def readwrite(self, target_nodes: Any | None = ...): ...
|
||||
def readonly(self, target_nodes: Incomplete | None = ...): ...
|
||||
def readwrite(self, target_nodes: Incomplete | None = ...): ...
|
||||
|
||||
+203
-145
@@ -81,12 +81,12 @@ class ManagementCommands:
|
||||
def client_kill(self, address: str, **kwargs: _CommandOptions) -> bool: ...
|
||||
def client_kill_filter(
|
||||
self,
|
||||
_id: Any | None = ...,
|
||||
_type: Any | None = ...,
|
||||
addr: Any | None = ...,
|
||||
skipme: Any | None = ...,
|
||||
laddr: Any | None = ...,
|
||||
user: Any | None = ...,
|
||||
_id: Incomplete | None = ...,
|
||||
_type: Incomplete | None = ...,
|
||||
addr: Incomplete | None = ...,
|
||||
skipme: Incomplete | None = ...,
|
||||
laddr: Incomplete | None = ...,
|
||||
user: Incomplete | None = ...,
|
||||
**kwargs: _CommandOptions,
|
||||
): ...
|
||||
def client_info(self, **kwargs: _CommandOptions): ...
|
||||
@@ -98,15 +98,27 @@ class ManagementCommands:
|
||||
def client_reply(self, reply, **kwargs: _CommandOptions): ...
|
||||
def client_id(self, **kwargs: _CommandOptions) -> int: ...
|
||||
def client_tracking_on(
|
||||
self, clientid: Any | None = ..., prefix=..., bcast: bool = ..., optin: bool = ..., optout: bool = ..., noloop: bool = ...
|
||||
self,
|
||||
clientid: Incomplete | None = ...,
|
||||
prefix=...,
|
||||
bcast: bool = ...,
|
||||
optin: bool = ...,
|
||||
optout: bool = ...,
|
||||
noloop: bool = ...,
|
||||
): ...
|
||||
def client_tracking_off(
|
||||
self, clientid: Any | None = ..., prefix=..., bcast: bool = ..., optin: bool = ..., optout: bool = ..., noloop: bool = ...
|
||||
self,
|
||||
clientid: Incomplete | None = ...,
|
||||
prefix=...,
|
||||
bcast: bool = ...,
|
||||
optin: bool = ...,
|
||||
optout: bool = ...,
|
||||
noloop: bool = ...,
|
||||
): ...
|
||||
def client_tracking(
|
||||
self,
|
||||
on: bool = ...,
|
||||
clientid: Any | None = ...,
|
||||
clientid: Incomplete | None = ...,
|
||||
prefix=...,
|
||||
bcast: bool = ...,
|
||||
optin: bool = ...,
|
||||
@@ -149,7 +161,7 @@ class ManagementCommands:
|
||||
timeout,
|
||||
copy: bool = ...,
|
||||
replace: bool = ...,
|
||||
auth: Any | None = ...,
|
||||
auth: Incomplete | None = ...,
|
||||
**kwargs: _CommandOptions,
|
||||
): ...
|
||||
def object(self, infotype, key, **kwargs: _CommandOptions): ...
|
||||
@@ -157,7 +169,7 @@ class ManagementCommands:
|
||||
def memory_help(self, **kwargs: _CommandOptions): ...
|
||||
def memory_stats(self, **kwargs: _CommandOptions) -> dict[str, Any]: ...
|
||||
def memory_malloc_stats(self, **kwargs: _CommandOptions): ...
|
||||
def memory_usage(self, key, samples: Any | None = ..., **kwargs: _CommandOptions): ...
|
||||
def memory_usage(self, key, samples: Incomplete | None = ..., **kwargs: _CommandOptions): ...
|
||||
def memory_purge(self, **kwargs: _CommandOptions): ...
|
||||
def ping(self, **kwargs: _CommandOptions) -> bool: ...
|
||||
def quit(self, **kwargs: _CommandOptions): ...
|
||||
@@ -172,8 +184,8 @@ class ManagementCommands:
|
||||
abort: bool = ...,
|
||||
**kwargs: _CommandOptions,
|
||||
) -> None: ...
|
||||
def slaveof(self, host: Any | None = ..., port: Any | None = ..., **kwargs: _CommandOptions): ...
|
||||
def slowlog_get(self, num: Any | None = ..., **kwargs: _CommandOptions): ...
|
||||
def slaveof(self, host: Incomplete | None = ..., port: Incomplete | None = ..., **kwargs: _CommandOptions): ...
|
||||
def slowlog_get(self, num: Incomplete | None = ..., **kwargs: _CommandOptions): ...
|
||||
def slowlog_len(self, **kwargs: _CommandOptions): ...
|
||||
def slowlog_reset(self, **kwargs: _CommandOptions): ...
|
||||
def time(self, **kwargs: _CommandOptions): ...
|
||||
@@ -186,12 +198,12 @@ class AsyncManagementCommands:
|
||||
async def client_kill(self, address: str, **kwargs: _CommandOptions) -> bool: ...
|
||||
async def client_kill_filter(
|
||||
self,
|
||||
_id: Any | None = ...,
|
||||
_type: Any | None = ...,
|
||||
addr: Any | None = ...,
|
||||
skipme: Any | None = ...,
|
||||
laddr: Any | None = ...,
|
||||
user: Any | None = ...,
|
||||
_id: Incomplete | None = ...,
|
||||
_type: Incomplete | None = ...,
|
||||
addr: Incomplete | None = ...,
|
||||
skipme: Incomplete | None = ...,
|
||||
laddr: Incomplete | None = ...,
|
||||
user: Incomplete | None = ...,
|
||||
**kwargs: _CommandOptions,
|
||||
): ...
|
||||
async def client_info(self, **kwargs: _CommandOptions): ...
|
||||
@@ -203,15 +215,27 @@ class AsyncManagementCommands:
|
||||
async def client_reply(self, reply, **kwargs: _CommandOptions): ...
|
||||
async def client_id(self, **kwargs: _CommandOptions) -> int: ...
|
||||
async def client_tracking_on(
|
||||
self, clientid: Any | None = ..., prefix=..., bcast: bool = ..., optin: bool = ..., optout: bool = ..., noloop: bool = ...
|
||||
self,
|
||||
clientid: Incomplete | None = ...,
|
||||
prefix=...,
|
||||
bcast: bool = ...,
|
||||
optin: bool = ...,
|
||||
optout: bool = ...,
|
||||
noloop: bool = ...,
|
||||
): ...
|
||||
async def client_tracking_off(
|
||||
self, clientid: Any | None = ..., prefix=..., bcast: bool = ..., optin: bool = ..., optout: bool = ..., noloop: bool = ...
|
||||
self,
|
||||
clientid: Incomplete | None = ...,
|
||||
prefix=...,
|
||||
bcast: bool = ...,
|
||||
optin: bool = ...,
|
||||
optout: bool = ...,
|
||||
noloop: bool = ...,
|
||||
): ...
|
||||
async def client_tracking(
|
||||
self,
|
||||
on: bool = ...,
|
||||
clientid: Any | None = ...,
|
||||
clientid: Incomplete | None = ...,
|
||||
prefix=...,
|
||||
bcast: bool = ...,
|
||||
optin: bool = ...,
|
||||
@@ -254,7 +278,7 @@ class AsyncManagementCommands:
|
||||
timeout,
|
||||
copy: bool = ...,
|
||||
replace: bool = ...,
|
||||
auth: Any | None = ...,
|
||||
auth: Incomplete | None = ...,
|
||||
**kwargs: _CommandOptions,
|
||||
): ...
|
||||
async def object(self, infotype, key, **kwargs: _CommandOptions): ...
|
||||
@@ -262,7 +286,7 @@ class AsyncManagementCommands:
|
||||
async def memory_help(self, **kwargs: _CommandOptions): ...
|
||||
async def memory_stats(self, **kwargs: _CommandOptions) -> dict[str, Any]: ...
|
||||
async def memory_malloc_stats(self, **kwargs: _CommandOptions): ...
|
||||
async def memory_usage(self, key, samples: Any | None = ..., **kwargs: _CommandOptions): ...
|
||||
async def memory_usage(self, key, samples: Incomplete | None = ..., **kwargs: _CommandOptions): ...
|
||||
async def memory_purge(self, **kwargs: _CommandOptions): ...
|
||||
async def ping(self, **kwargs: _CommandOptions) -> bool: ...
|
||||
async def quit(self, **kwargs: _CommandOptions): ...
|
||||
@@ -277,8 +301,8 @@ class AsyncManagementCommands:
|
||||
abort: bool = ...,
|
||||
**kwargs: _CommandOptions,
|
||||
) -> None: ...
|
||||
async def slaveof(self, host: Any | None = ..., port: Any | None = ..., **kwargs: _CommandOptions): ...
|
||||
async def slowlog_get(self, num: Any | None = ..., **kwargs: _CommandOptions): ...
|
||||
async def slaveof(self, host: Incomplete | None = ..., port: Incomplete | None = ..., **kwargs: _CommandOptions): ...
|
||||
async def slowlog_get(self, num: Incomplete | None = ..., **kwargs: _CommandOptions): ...
|
||||
async def slowlog_len(self, **kwargs: _CommandOptions): ...
|
||||
async def slowlog_reset(self, **kwargs: _CommandOptions): ...
|
||||
async def time(self, **kwargs: _CommandOptions): ...
|
||||
@@ -287,10 +311,10 @@ class AsyncManagementCommands:
|
||||
class BasicKeyCommands(Generic[_StrType]):
|
||||
def append(self, key, value): ...
|
||||
def bitcount(self, key: _Key, start: int | None = ..., end: int | None = ..., mode: str | None = ...) -> int: ...
|
||||
def bitfield(self, key, default_overflow: Any | None = ...): ...
|
||||
def bitfield(self, key, default_overflow: Incomplete | None = ...): ...
|
||||
def bitop(self, operation, dest, *keys): ...
|
||||
def bitpos(self, key: _Key, bit: int, start: int | None = ..., end: int | None = ..., mode: str | None = ...): ...
|
||||
def copy(self, source, destination, destination_db: Any | None = ..., replace: bool = ...): ...
|
||||
def copy(self, source, destination, destination_db: Incomplete | None = ..., replace: bool = ...): ...
|
||||
def decr(self, name, amount: int = ...) -> int: ...
|
||||
def decrby(self, name, amount: int = ...) -> int: ...
|
||||
def delete(self, *names: _Key) -> int: ...
|
||||
@@ -307,10 +331,10 @@ class BasicKeyCommands(Generic[_StrType]):
|
||||
def getex(
|
||||
self,
|
||||
name,
|
||||
ex: Any | None = ...,
|
||||
px: Any | None = ...,
|
||||
exat: Any | None = ...,
|
||||
pxat: Any | None = ...,
|
||||
ex: Incomplete | None = ...,
|
||||
px: Incomplete | None = ...,
|
||||
exat: Incomplete | None = ...,
|
||||
pxat: Incomplete | None = ...,
|
||||
persist: bool = ...,
|
||||
): ...
|
||||
def __getitem__(self, name: str): ...
|
||||
@@ -345,12 +369,19 @@ class BasicKeyCommands(Generic[_StrType]):
|
||||
) -> Literal[1, 0]: ...
|
||||
def psetex(self, name, time_ms, value): ...
|
||||
def pttl(self, name: _Key) -> int: ...
|
||||
def hrandfield(self, key, count: Any | None = ..., withvalues: bool = ...): ...
|
||||
def hrandfield(self, key, count: Incomplete | None = ..., withvalues: bool = ...): ...
|
||||
def randomkey(self, **kwargs: _CommandOptions): ...
|
||||
def rename(self, src, dst): ...
|
||||
def renamenx(self, src, dst): ...
|
||||
def restore(
|
||||
self, name, ttl, value, replace: bool = ..., absttl: bool = ..., idletime: Any | None = ..., frequency: Any | None = ...
|
||||
self,
|
||||
name,
|
||||
ttl,
|
||||
value,
|
||||
replace: bool = ...,
|
||||
absttl: bool = ...,
|
||||
idletime: Incomplete | None = ...,
|
||||
frequency: Incomplete | None = ...,
|
||||
): ...
|
||||
def set(
|
||||
self,
|
||||
@@ -362,8 +393,8 @@ class BasicKeyCommands(Generic[_StrType]):
|
||||
xx: bool = ...,
|
||||
keepttl: bool = ...,
|
||||
get: bool = ...,
|
||||
exat: Any | None = ...,
|
||||
pxat: Any | None = ...,
|
||||
exat: Incomplete | None = ...,
|
||||
pxat: Incomplete | None = ...,
|
||||
) -> bool | None: ...
|
||||
def __setitem__(self, name, value) -> None: ...
|
||||
def setbit(self, name: _Key, offset: int, value: int) -> int: ...
|
||||
@@ -378,7 +409,7 @@ class BasicKeyCommands(Generic[_StrType]):
|
||||
specific_argument: str = ...,
|
||||
len: bool = ...,
|
||||
idx: bool = ...,
|
||||
minmatchlen: Any | None = ...,
|
||||
minmatchlen: Incomplete | None = ...,
|
||||
withmatchlen: bool = ...,
|
||||
**kwargs: _CommandOptions,
|
||||
): ...
|
||||
@@ -394,10 +425,10 @@ class BasicKeyCommands(Generic[_StrType]):
|
||||
class AsyncBasicKeyCommands(Generic[_StrType]):
|
||||
async def append(self, key, value): ...
|
||||
async def bitcount(self, key: _Key, start: int | None = ..., end: int | None = ..., mode: str | None = ...) -> int: ...
|
||||
async def bitfield(self, key, default_overflow: Any | None = ...): ...
|
||||
async def bitfield(self, key, default_overflow: Incomplete | None = ...): ...
|
||||
async def bitop(self, operation, dest, *keys): ...
|
||||
async def bitpos(self, key: _Key, bit: int, start: int | None = ..., end: int | None = ..., mode: str | None = ...): ...
|
||||
async def copy(self, source, destination, destination_db: Any | None = ..., replace: bool = ...): ...
|
||||
async def copy(self, source, destination, destination_db: Incomplete | None = ..., replace: bool = ...): ...
|
||||
async def decr(self, name, amount: int = ...) -> int: ...
|
||||
async def decrby(self, name, amount: int = ...) -> int: ...
|
||||
async def delete(self, *names: _Key) -> int: ...
|
||||
@@ -412,10 +443,10 @@ class AsyncBasicKeyCommands(Generic[_StrType]):
|
||||
async def getex(
|
||||
self,
|
||||
name,
|
||||
ex: Any | None = ...,
|
||||
px: Any | None = ...,
|
||||
exat: Any | None = ...,
|
||||
pxat: Any | None = ...,
|
||||
ex: Incomplete | None = ...,
|
||||
px: Incomplete | None = ...,
|
||||
exat: Incomplete | None = ...,
|
||||
pxat: Incomplete | None = ...,
|
||||
persist: bool = ...,
|
||||
): ...
|
||||
async def getbit(self, name: _Key, offset: int) -> int: ...
|
||||
@@ -449,12 +480,19 @@ class AsyncBasicKeyCommands(Generic[_StrType]):
|
||||
) -> Literal[1, 0]: ...
|
||||
async def psetex(self, name, time_ms, value): ...
|
||||
async def pttl(self, name: _Key) -> int: ...
|
||||
async def hrandfield(self, key, count: Any | None = ..., withvalues: bool = ...): ...
|
||||
async def hrandfield(self, key, count: Incomplete | None = ..., withvalues: bool = ...): ...
|
||||
async def randomkey(self, **kwargs: _CommandOptions): ...
|
||||
async def rename(self, src, dst): ...
|
||||
async def renamenx(self, src, dst): ...
|
||||
async def restore(
|
||||
self, name, ttl, value, replace: bool = ..., absttl: bool = ..., idletime: Any | None = ..., frequency: Any | None = ...
|
||||
self,
|
||||
name,
|
||||
ttl,
|
||||
value,
|
||||
replace: bool = ...,
|
||||
absttl: bool = ...,
|
||||
idletime: Incomplete | None = ...,
|
||||
frequency: Incomplete | None = ...,
|
||||
): ...
|
||||
async def set(
|
||||
self,
|
||||
@@ -466,8 +504,8 @@ class AsyncBasicKeyCommands(Generic[_StrType]):
|
||||
xx: bool = ...,
|
||||
keepttl: bool = ...,
|
||||
get: bool = ...,
|
||||
exat: Any | None = ...,
|
||||
pxat: Any | None = ...,
|
||||
exat: Incomplete | None = ...,
|
||||
pxat: Incomplete | None = ...,
|
||||
) -> bool | None: ...
|
||||
async def setbit(self, name: _Key, offset: int, value: int) -> int: ...
|
||||
async def setex(self, name: _Key, time: int | timedelta, value: _Value) -> bool: ...
|
||||
@@ -481,7 +519,7 @@ class AsyncBasicKeyCommands(Generic[_StrType]):
|
||||
specific_argument: str = ...,
|
||||
len: bool = ...,
|
||||
idx: bool = ...,
|
||||
minmatchlen: Any | None = ...,
|
||||
minmatchlen: Incomplete | None = ...,
|
||||
withmatchlen: bool = ...,
|
||||
**kwargs: _CommandOptions,
|
||||
): ...
|
||||
@@ -524,7 +562,9 @@ class ListCommands(Generic[_StrType]):
|
||||
def rpoplpush(self, src, dst): ...
|
||||
def rpush(self, name: _Value, *values: _Value) -> int: ...
|
||||
def rpushx(self, name, value): ...
|
||||
def lpos(self, name, value, rank: Any | None = ..., count: Any | None = ..., maxlen: Any | None = ...): ...
|
||||
def lpos(
|
||||
self, name, value, rank: Incomplete | None = ..., count: Incomplete | None = ..., maxlen: Incomplete | None = ...
|
||||
): ...
|
||||
@overload
|
||||
def sort(
|
||||
self,
|
||||
@@ -592,7 +632,9 @@ class AsyncListCommands(Generic[_StrType]):
|
||||
async def rpoplpush(self, src, dst): ...
|
||||
async def rpush(self, name: _Value, *values: _Value) -> int: ...
|
||||
async def rpushx(self, name, value): ...
|
||||
async def lpos(self, name, value, rank: Any | None = ..., count: Any | None = ..., maxlen: Any | None = ...): ...
|
||||
async def lpos(
|
||||
self, name, value, rank: Incomplete | None = ..., count: Incomplete | None = ..., maxlen: Incomplete | None = ...
|
||||
): ...
|
||||
@overload
|
||||
async def sort(
|
||||
self,
|
||||
@@ -814,11 +856,18 @@ class StreamCommands:
|
||||
maxlen=...,
|
||||
approximate: bool = ...,
|
||||
nomkstream: bool = ...,
|
||||
minid: Any | None = ...,
|
||||
limit: Any | None = ...,
|
||||
minid: Incomplete | None = ...,
|
||||
limit: Incomplete | None = ...,
|
||||
): ...
|
||||
def xautoclaim(
|
||||
self, name, groupname, consumername, min_idle_time, start_id: StreamIdT = ..., count: Any | None = ..., justid: bool = ...
|
||||
self,
|
||||
name,
|
||||
groupname,
|
||||
consumername,
|
||||
min_idle_time,
|
||||
start_id: StreamIdT = ...,
|
||||
count: Incomplete | None = ...,
|
||||
justid: bool = ...,
|
||||
): ...
|
||||
def xclaim(
|
||||
self, name, groupname, consumername, min_idle_time, message_ids, idle=..., time=..., retrycount=..., force=..., justid=...
|
||||
@@ -835,14 +884,14 @@ class StreamCommands:
|
||||
def xlen(self, name: _Key) -> int: ...
|
||||
def xpending(self, name, groupname): ...
|
||||
def xpending_range(
|
||||
self, name: _Key, groupname, min, max, count: int, consumername: Any | None = ..., idle: int | None = ...
|
||||
self, name: _Key, groupname, min, max, count: int, consumername: Incomplete | None = ..., idle: int | None = ...
|
||||
): ...
|
||||
def xrange(self, name, min: str = ..., max: str = ..., count: Any | None = ...): ...
|
||||
def xread(self, streams, count: Any | None = ..., block: Any | None = ...): ...
|
||||
def xrange(self, name, min: str = ..., max: str = ..., count: Incomplete | None = ...): ...
|
||||
def xread(self, streams, count: Incomplete | None = ..., block: Incomplete | None = ...): ...
|
||||
def xreadgroup(
|
||||
self, groupname, consumername, streams, count: Any | None = ..., block: Any | None = ..., noack: bool = ...
|
||||
self, groupname, consumername, streams, count: Incomplete | None = ..., block: Incomplete | None = ..., noack: bool = ...
|
||||
): ...
|
||||
def xrevrange(self, name, max: str = ..., min: str = ..., count: Any | None = ...): ...
|
||||
def xrevrange(self, name, max: str = ..., min: str = ..., count: Incomplete | None = ...): ...
|
||||
def xtrim(
|
||||
self, name, maxlen: int | None = ..., approximate: bool = ..., minid: Incomplete | None = ..., limit: int | None = ...
|
||||
): ...
|
||||
@@ -857,11 +906,18 @@ class AsyncStreamCommands:
|
||||
maxlen=...,
|
||||
approximate: bool = ...,
|
||||
nomkstream: bool = ...,
|
||||
minid: Any | None = ...,
|
||||
limit: Any | None = ...,
|
||||
minid: Incomplete | None = ...,
|
||||
limit: Incomplete | None = ...,
|
||||
): ...
|
||||
async def xautoclaim(
|
||||
self, name, groupname, consumername, min_idle_time, start_id: StreamIdT = ..., count: Any | None = ..., justid: bool = ...
|
||||
self,
|
||||
name,
|
||||
groupname,
|
||||
consumername,
|
||||
min_idle_time,
|
||||
start_id: StreamIdT = ...,
|
||||
count: Incomplete | None = ...,
|
||||
justid: bool = ...,
|
||||
): ...
|
||||
async def xclaim(
|
||||
self, name, groupname, consumername, min_idle_time, message_ids, idle=..., time=..., retrycount=..., force=..., justid=...
|
||||
@@ -878,14 +934,14 @@ class AsyncStreamCommands:
|
||||
async def xlen(self, name: _Key) -> int: ...
|
||||
async def xpending(self, name, groupname): ...
|
||||
async def xpending_range(
|
||||
self, name: _Key, groupname, min, max, count: int, consumername: Any | None = ..., idle: int | None = ...
|
||||
self, name: _Key, groupname, min, max, count: int, consumername: Incomplete | None = ..., idle: int | None = ...
|
||||
): ...
|
||||
async def xrange(self, name, min: str = ..., max: str = ..., count: Any | None = ...): ...
|
||||
async def xread(self, streams, count: Any | None = ..., block: Any | None = ...): ...
|
||||
async def xrange(self, name, min: str = ..., max: str = ..., count: Incomplete | None = ...): ...
|
||||
async def xread(self, streams, count: Incomplete | None = ..., block: Incomplete | None = ...): ...
|
||||
async def xreadgroup(
|
||||
self, groupname, consumername, streams, count: Any | None = ..., block: Any | None = ..., noack: bool = ...
|
||||
self, groupname, consumername, streams, count: Incomplete | None = ..., block: Incomplete | None = ..., noack: bool = ...
|
||||
): ...
|
||||
async def xrevrange(self, name, max: str = ..., min: str = ..., count: Any | None = ...): ...
|
||||
async def xrevrange(self, name, max: str = ..., min: str = ..., count: Incomplete | None = ...): ...
|
||||
async def xtrim(
|
||||
self, name, maxlen: int | None = ..., approximate: bool = ..., minid: Incomplete | None = ..., limit: int | None = ...
|
||||
): ...
|
||||
@@ -899,20 +955,20 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
xx: bool = ...,
|
||||
ch: bool = ...,
|
||||
incr: bool = ...,
|
||||
gt: Any | None = ...,
|
||||
lt: Any | None = ...,
|
||||
gt: Incomplete | None = ...,
|
||||
lt: Incomplete | None = ...,
|
||||
) -> int: ...
|
||||
def zcard(self, name: _Key) -> int: ...
|
||||
def zcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
def zdiff(self, keys, withscores: bool = ...): ...
|
||||
def zdiffstore(self, dest, keys): ...
|
||||
def zincrby(self, name: _Key, amount: float, value: _Value) -> float: ...
|
||||
def zinter(self, keys, aggregate: Any | None = ..., withscores: bool = ...): ...
|
||||
def zinter(self, keys, aggregate: Incomplete | None = ..., withscores: bool = ...): ...
|
||||
def zinterstore(self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = ...) -> int: ...
|
||||
def zlexcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
def zpopmax(self, name: _Key, count: int | None = ...) -> list[tuple[_StrType, float]]: ...
|
||||
def zpopmin(self, name: _Key, count: int | None = ...) -> list[tuple[_StrType, float]]: ...
|
||||
def zrandmember(self, key, count: Any | None = ..., withscores: bool = ...): ...
|
||||
def zrandmember(self, key, count: Incomplete | None = ..., withscores: bool = ...): ...
|
||||
@overload
|
||||
def bzpopmax(self, keys: _Key | Iterable[_Key], timeout: Literal[0] = ...) -> tuple[_StrType, _StrType, float]: ...
|
||||
@overload
|
||||
@@ -1015,8 +1071,8 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
byscore: bool = ...,
|
||||
bylex: bool = ...,
|
||||
desc: bool = ...,
|
||||
offset: Any | None = ...,
|
||||
num: Any | None = ...,
|
||||
offset: Incomplete | None = ...,
|
||||
num: Incomplete | None = ...,
|
||||
): ...
|
||||
def zrangebylex(
|
||||
self, name: _Key, min: _Value, max: _Value, start: int | None = ..., num: int | None = ...
|
||||
@@ -1085,7 +1141,7 @@ class SortedSetCommands(Generic[_StrType]):
|
||||
def zremrangebyscore(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
def zrevrank(self, name: _Key, value: _Value) -> int | None: ...
|
||||
def zscore(self, name: _Key, value: _Value) -> float | None: ...
|
||||
def zunion(self, keys, aggregate: Any | None = ..., withscores: bool = ...): ...
|
||||
def zunion(self, keys, aggregate: Incomplete | None = ..., withscores: bool = ...): ...
|
||||
def zunionstore(self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = ...) -> int: ...
|
||||
def zmscore(self, key, members): ...
|
||||
|
||||
@@ -1098,22 +1154,22 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
xx: bool = ...,
|
||||
ch: bool = ...,
|
||||
incr: bool = ...,
|
||||
gt: Any | None = ...,
|
||||
lt: Any | None = ...,
|
||||
gt: Incomplete | None = ...,
|
||||
lt: Incomplete | None = ...,
|
||||
) -> int: ...
|
||||
async def zcard(self, name: _Key) -> int: ...
|
||||
async def zcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
async def zdiff(self, keys, withscores: bool = ...): ...
|
||||
async def zdiffstore(self, dest, keys): ...
|
||||
async def zincrby(self, name: _Key, amount: float, value: _Value) -> float: ...
|
||||
async def zinter(self, keys, aggregate: Any | None = ..., withscores: bool = ...): ...
|
||||
async def zinter(self, keys, aggregate: Incomplete | None = ..., withscores: bool = ...): ...
|
||||
async def zinterstore(
|
||||
self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = ...
|
||||
) -> int: ...
|
||||
async def zlexcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
async def zpopmax(self, name: _Key, count: int | None = ...) -> list[tuple[_StrType, float]]: ...
|
||||
async def zpopmin(self, name: _Key, count: int | None = ...) -> list[tuple[_StrType, float]]: ...
|
||||
async def zrandmember(self, key, count: Any | None = ..., withscores: bool = ...): ...
|
||||
async def zrandmember(self, key, count: Incomplete | None = ..., withscores: bool = ...): ...
|
||||
@overload
|
||||
async def bzpopmax(self, keys: _Key | Iterable[_Key], timeout: Literal[0] = ...) -> tuple[_StrType, _StrType, float]: ...
|
||||
@overload
|
||||
@@ -1218,8 +1274,8 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
byscore: bool = ...,
|
||||
bylex: bool = ...,
|
||||
desc: bool = ...,
|
||||
offset: Any | None = ...,
|
||||
num: Any | None = ...,
|
||||
offset: Incomplete | None = ...,
|
||||
num: Incomplete | None = ...,
|
||||
): ...
|
||||
async def zrangebylex(
|
||||
self, name: _Key, min: _Value, max: _Value, start: int | None = ..., num: int | None = ...
|
||||
@@ -1288,7 +1344,7 @@ class AsyncSortedSetCommands(Generic[_StrType]):
|
||||
async def zremrangebyscore(self, name: _Key, min: _Value, max: _Value) -> int: ...
|
||||
async def zrevrank(self, name: _Key, value: _Value) -> int | None: ...
|
||||
async def zscore(self, name: _Key, value: _Value) -> float | None: ...
|
||||
async def zunion(self, keys, aggregate: Any | None = ..., withscores: bool = ...): ...
|
||||
async def zunion(self, keys, aggregate: Incomplete | None = ..., withscores: bool = ...): ...
|
||||
async def zunionstore(
|
||||
self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = ...
|
||||
) -> int: ...
|
||||
@@ -1315,12 +1371,12 @@ class HashCommands(Generic[_StrType]):
|
||||
def hlen(self, name: _Key) -> int: ...
|
||||
@overload
|
||||
def hset(
|
||||
self, name: _Key, key: _Key, value: _Value, mapping: Mapping[_Key, _Value] | None = ..., items: Any | None = ...
|
||||
self, name: _Key, key: _Key, value: _Value, mapping: Mapping[_Key, _Value] | None = ..., items: Incomplete | None = ...
|
||||
) -> int: ...
|
||||
@overload
|
||||
def hset(self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value], items: Any | None = ...) -> int: ...
|
||||
def hset(self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value], items: Incomplete | None = ...) -> int: ...
|
||||
@overload
|
||||
def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value], items: Any | None = ...) -> int: ...
|
||||
def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value], items: Incomplete | None = ...) -> int: ...
|
||||
def hsetnx(self, name: _Key, key: _Key, value: _Value) -> int: ...
|
||||
def hmset(self, name: _Key, mapping: Mapping[_Key, _Value]) -> bool: ...
|
||||
def hmget(self, name: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> list[_StrType | None]: ...
|
||||
@@ -1338,12 +1394,14 @@ class AsyncHashCommands(Generic[_StrType]):
|
||||
async def hlen(self, name: _Key) -> int: ...
|
||||
@overload
|
||||
async def hset(
|
||||
self, name: _Key, key: _Key, value: _Value, mapping: Mapping[_Key, _Value] | None = ..., items: Any | None = ...
|
||||
self, name: _Key, key: _Key, value: _Value, mapping: Mapping[_Key, _Value] | None = ..., items: Incomplete | None = ...
|
||||
) -> int: ...
|
||||
@overload
|
||||
async def hset(self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value], items: Any | None = ...) -> int: ...
|
||||
async def hset(
|
||||
self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value], items: Incomplete | None = ...
|
||||
) -> int: ...
|
||||
@overload
|
||||
async def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value], items: Any | None = ...) -> int: ...
|
||||
async def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value], items: Incomplete | None = ...) -> int: ...
|
||||
async def hsetnx(self, name: _Key, key: _Key, value: _Value) -> int: ...
|
||||
async def hmset(self, name: _Key, mapping: Mapping[_Key, _Value]) -> bool: ...
|
||||
async def hmget(self, name: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> list[_StrType | None]: ...
|
||||
@@ -1373,7 +1431,7 @@ class ScriptCommands(Generic[_StrType]):
|
||||
def evalsha(self, sha, numkeys, *keys_and_args): ...
|
||||
def script_exists(self, *args): ...
|
||||
def script_debug(self, *args): ...
|
||||
def script_flush(self, sync_type: Any | None = ...): ...
|
||||
def script_flush(self, sync_type: Incomplete | None = ...): ...
|
||||
def script_kill(self): ...
|
||||
def script_load(self, script): ...
|
||||
def register_script(self, script: str | _StrType) -> Script: ...
|
||||
@@ -1383,14 +1441,14 @@ class AsyncScriptCommands(Generic[_StrType]):
|
||||
async def evalsha(self, sha, numkeys, *keys_and_args): ...
|
||||
async def script_exists(self, *args): ...
|
||||
async def script_debug(self, *args): ...
|
||||
async def script_flush(self, sync_type: Any | None = ...): ...
|
||||
async def script_flush(self, sync_type: Incomplete | None = ...): ...
|
||||
async def script_kill(self): ...
|
||||
async def script_load(self, script): ...
|
||||
def register_script(self, script: ScriptTextT) -> AsyncScript: ... # type: ignore[override]
|
||||
|
||||
class GeoCommands:
|
||||
def geoadd(self, name, values, nx: bool = ..., xx: bool = ..., ch: bool = ...): ...
|
||||
def geodist(self, name, place1, place2, unit: Any | None = ...): ...
|
||||
def geodist(self, name, place1, place2, unit: Incomplete | None = ...): ...
|
||||
def geohash(self, name, *values): ...
|
||||
def geopos(self, name, *values): ...
|
||||
def georadius(
|
||||
@@ -1399,14 +1457,14 @@ class GeoCommands:
|
||||
longitude,
|
||||
latitude,
|
||||
radius,
|
||||
unit: Any | None = ...,
|
||||
unit: Incomplete | None = ...,
|
||||
withdist: bool = ...,
|
||||
withcoord: bool = ...,
|
||||
withhash: bool = ...,
|
||||
count: Any | None = ...,
|
||||
sort: Any | None = ...,
|
||||
store: Any | None = ...,
|
||||
store_dist: Any | None = ...,
|
||||
count: Incomplete | None = ...,
|
||||
sort: Incomplete | None = ...,
|
||||
store: Incomplete | None = ...,
|
||||
store_dist: Incomplete | None = ...,
|
||||
any: bool = ...,
|
||||
): ...
|
||||
def georadiusbymember(
|
||||
@@ -1414,28 +1472,28 @@ class GeoCommands:
|
||||
name,
|
||||
member,
|
||||
radius,
|
||||
unit: Any | None = ...,
|
||||
unit: Incomplete | None = ...,
|
||||
withdist: bool = ...,
|
||||
withcoord: bool = ...,
|
||||
withhash: bool = ...,
|
||||
count: Any | None = ...,
|
||||
sort: Any | None = ...,
|
||||
store: Any | None = ...,
|
||||
store_dist: Any | None = ...,
|
||||
count: Incomplete | None = ...,
|
||||
sort: Incomplete | None = ...,
|
||||
store: Incomplete | None = ...,
|
||||
store_dist: Incomplete | None = ...,
|
||||
any: bool = ...,
|
||||
): ...
|
||||
def geosearch(
|
||||
self,
|
||||
name,
|
||||
member: Any | None = ...,
|
||||
longitude: Any | None = ...,
|
||||
latitude: Any | None = ...,
|
||||
member: Incomplete | None = ...,
|
||||
longitude: Incomplete | None = ...,
|
||||
latitude: Incomplete | None = ...,
|
||||
unit: str = ...,
|
||||
radius: Any | None = ...,
|
||||
width: Any | None = ...,
|
||||
height: Any | None = ...,
|
||||
sort: Any | None = ...,
|
||||
count: Any | None = ...,
|
||||
radius: Incomplete | None = ...,
|
||||
width: Incomplete | None = ...,
|
||||
height: Incomplete | None = ...,
|
||||
sort: Incomplete | None = ...,
|
||||
count: Incomplete | None = ...,
|
||||
any: bool = ...,
|
||||
withcoord: bool = ...,
|
||||
withdist: bool = ...,
|
||||
@@ -1445,22 +1503,22 @@ class GeoCommands:
|
||||
self,
|
||||
dest,
|
||||
name,
|
||||
member: Any | None = ...,
|
||||
longitude: Any | None = ...,
|
||||
latitude: Any | None = ...,
|
||||
member: Incomplete | None = ...,
|
||||
longitude: Incomplete | None = ...,
|
||||
latitude: Incomplete | None = ...,
|
||||
unit: str = ...,
|
||||
radius: Any | None = ...,
|
||||
width: Any | None = ...,
|
||||
height: Any | None = ...,
|
||||
sort: Any | None = ...,
|
||||
count: Any | None = ...,
|
||||
radius: Incomplete | None = ...,
|
||||
width: Incomplete | None = ...,
|
||||
height: Incomplete | None = ...,
|
||||
sort: Incomplete | None = ...,
|
||||
count: Incomplete | None = ...,
|
||||
any: bool = ...,
|
||||
storedist: bool = ...,
|
||||
): ...
|
||||
|
||||
class AsyncGeoCommands:
|
||||
async def geoadd(self, name, values, nx: bool = ..., xx: bool = ..., ch: bool = ...): ...
|
||||
async def geodist(self, name, place1, place2, unit: Any | None = ...): ...
|
||||
async def geodist(self, name, place1, place2, unit: Incomplete | None = ...): ...
|
||||
async def geohash(self, name, *values): ...
|
||||
async def geopos(self, name, *values): ...
|
||||
async def georadius(
|
||||
@@ -1469,14 +1527,14 @@ class AsyncGeoCommands:
|
||||
longitude,
|
||||
latitude,
|
||||
radius,
|
||||
unit: Any | None = ...,
|
||||
unit: Incomplete | None = ...,
|
||||
withdist: bool = ...,
|
||||
withcoord: bool = ...,
|
||||
withhash: bool = ...,
|
||||
count: Any | None = ...,
|
||||
sort: Any | None = ...,
|
||||
store: Any | None = ...,
|
||||
store_dist: Any | None = ...,
|
||||
count: Incomplete | None = ...,
|
||||
sort: Incomplete | None = ...,
|
||||
store: Incomplete | None = ...,
|
||||
store_dist: Incomplete | None = ...,
|
||||
any: bool = ...,
|
||||
): ...
|
||||
async def georadiusbymember(
|
||||
@@ -1484,28 +1542,28 @@ class AsyncGeoCommands:
|
||||
name,
|
||||
member,
|
||||
radius,
|
||||
unit: Any | None = ...,
|
||||
unit: Incomplete | None = ...,
|
||||
withdist: bool = ...,
|
||||
withcoord: bool = ...,
|
||||
withhash: bool = ...,
|
||||
count: Any | None = ...,
|
||||
sort: Any | None = ...,
|
||||
store: Any | None = ...,
|
||||
store_dist: Any | None = ...,
|
||||
count: Incomplete | None = ...,
|
||||
sort: Incomplete | None = ...,
|
||||
store: Incomplete | None = ...,
|
||||
store_dist: Incomplete | None = ...,
|
||||
any: bool = ...,
|
||||
): ...
|
||||
async def geosearch(
|
||||
self,
|
||||
name,
|
||||
member: Any | None = ...,
|
||||
longitude: Any | None = ...,
|
||||
latitude: Any | None = ...,
|
||||
member: Incomplete | None = ...,
|
||||
longitude: Incomplete | None = ...,
|
||||
latitude: Incomplete | None = ...,
|
||||
unit: str = ...,
|
||||
radius: Any | None = ...,
|
||||
width: Any | None = ...,
|
||||
height: Any | None = ...,
|
||||
sort: Any | None = ...,
|
||||
count: Any | None = ...,
|
||||
radius: Incomplete | None = ...,
|
||||
width: Incomplete | None = ...,
|
||||
height: Incomplete | None = ...,
|
||||
sort: Incomplete | None = ...,
|
||||
count: Incomplete | None = ...,
|
||||
any: bool = ...,
|
||||
withcoord: bool = ...,
|
||||
withdist: bool = ...,
|
||||
@@ -1515,15 +1573,15 @@ class AsyncGeoCommands:
|
||||
self,
|
||||
dest,
|
||||
name,
|
||||
member: Any | None = ...,
|
||||
longitude: Any | None = ...,
|
||||
latitude: Any | None = ...,
|
||||
member: Incomplete | None = ...,
|
||||
longitude: Incomplete | None = ...,
|
||||
latitude: Incomplete | None = ...,
|
||||
unit: str = ...,
|
||||
radius: Any | None = ...,
|
||||
width: Any | None = ...,
|
||||
height: Any | None = ...,
|
||||
sort: Any | None = ...,
|
||||
count: Any | None = ...,
|
||||
radius: Incomplete | None = ...,
|
||||
width: Incomplete | None = ...,
|
||||
height: Incomplete | None = ...,
|
||||
sort: Incomplete | None = ...,
|
||||
count: Incomplete | None = ...,
|
||||
any: bool = ...,
|
||||
storedist: bool = ...,
|
||||
): ...
|
||||
@@ -1539,13 +1597,13 @@ class ModuleCommands:
|
||||
|
||||
class Script:
|
||||
def __init__(self, registered_client, script) -> None: ...
|
||||
def __call__(self, keys=..., args=..., client: Any | None = ...): ...
|
||||
def __call__(self, keys=..., args=..., client: Incomplete | None = ...): ...
|
||||
|
||||
class BitFieldOperation:
|
||||
def __init__(self, client, key, default_overflow: Any | None = ...): ...
|
||||
def __init__(self, client, key, default_overflow: Incomplete | None = ...): ...
|
||||
def reset(self) -> None: ...
|
||||
def overflow(self, overflow): ...
|
||||
def incrby(self, fmt, offset, increment, overflow: Any | None = ...): ...
|
||||
def incrby(self, fmt, offset, increment, overflow: Incomplete | None = ...): ...
|
||||
def get(self, fmt, offset): ...
|
||||
def set(self, fmt, offset, value): ...
|
||||
@property
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
class GraphCommands:
|
||||
def commit(self): ...
|
||||
version: Any
|
||||
def query(self, q, params: Any | None = ..., timeout: Any | None = ..., read_only: bool = ..., profile: bool = ...): ...
|
||||
def query(
|
||||
self, q, params: Incomplete | None = ..., timeout: Incomplete | None = ..., read_only: bool = ..., profile: bool = ...
|
||||
): ...
|
||||
def merge(self, pattern): ...
|
||||
def delete(self): ...
|
||||
nodes: Any
|
||||
edges: Any
|
||||
def flush(self) -> None: ...
|
||||
def explain(self, query, params: Any | None = ...): ...
|
||||
def explain(self, query, params: Incomplete | None = ...): ...
|
||||
def bulk(self, **kwargs) -> None: ...
|
||||
def profile(self, query): ...
|
||||
def slowlog(self): ...
|
||||
def config(self, name, value: Any | None = ..., set: bool = ...): ...
|
||||
def config(self, name, value: Incomplete | None = ..., set: bool = ...): ...
|
||||
def list_keys(self): ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
class Edge:
|
||||
@@ -6,6 +7,8 @@ class Edge:
|
||||
properties: Any
|
||||
src_node: Any
|
||||
dest_node: Any
|
||||
def __init__(self, src_node, relation, dest_node, edge_id: Any | None = ..., properties: Any | None = ...) -> None: ...
|
||||
def __init__(
|
||||
self, src_node, relation, dest_node, edge_id: Incomplete | None = ..., properties: Incomplete | None = ...
|
||||
) -> None: ...
|
||||
def to_string(self): ...
|
||||
def __eq__(self, rhs): ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
class Node:
|
||||
@@ -8,10 +9,10 @@ class Node:
|
||||
properties: Any
|
||||
def __init__(
|
||||
self,
|
||||
node_id: Any | None = ...,
|
||||
alias: Any | None = ...,
|
||||
node_id: Incomplete | None = ...,
|
||||
alias: Incomplete | None = ...,
|
||||
label: str | list[str] | None = ...,
|
||||
properties: Any | None = ...,
|
||||
properties: Incomplete | None = ...,
|
||||
) -> None: ...
|
||||
def to_string(self): ...
|
||||
def __eq__(self, rhs): ...
|
||||
|
||||
@@ -9,7 +9,7 @@ class JSON(JSONCommands):
|
||||
client: Any
|
||||
execute_command: Any
|
||||
MODULE_VERSION: Any | None
|
||||
def __init__(self, client, version: Any | None = ..., decoder=..., encoder=...) -> None: ...
|
||||
def pipeline(self, transaction: bool = ..., shard_hint: Any | None = ...) -> Pipeline: ...
|
||||
def __init__(self, client, version: Incomplete | None = ..., decoder=..., encoder=...) -> None: ...
|
||||
def pipeline(self, transaction: bool = ..., shard_hint: Incomplete | None = ...) -> Pipeline: ...
|
||||
|
||||
class Pipeline(JSONCommands, ClientPipeline[Incomplete]): ... # type: ignore[misc]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
class JSONCommands:
|
||||
def arrappend(self, name, path=..., *args): ...
|
||||
@@ -21,10 +21,10 @@ class JSONCommands:
|
||||
def set(self, name, path, obj, nx: bool = ..., xx: bool = ..., decode_keys: bool = ...): ...
|
||||
def set_file(self, name, path, file_name, nx: bool = ..., xx: bool = ..., decode_keys: bool = ...): ...
|
||||
def set_path(self, json_path, root_folder, nx: bool = ..., xx: bool = ..., decode_keys: bool = ...): ...
|
||||
def strlen(self, name, path: Any | None = ...): ...
|
||||
def strlen(self, name, path: Incomplete | None = ...): ...
|
||||
def toggle(self, name, path=...): ...
|
||||
def strappend(self, name, value, path=...): ...
|
||||
def debug(self, subcommand, key: Any | None = ..., path=...): ...
|
||||
def debug(self, subcommand, key: Incomplete | None = ..., path=...): ...
|
||||
def jsonget(self, *args, **kwargs): ...
|
||||
def jsonmget(self, *args, **kwargs): ...
|
||||
def jsonset(self, *args, **kwargs): ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from .commands import SearchCommands
|
||||
|
||||
@@ -10,7 +10,7 @@ class Search(SearchCommands):
|
||||
doc_id,
|
||||
nosave: bool = ...,
|
||||
score: float = ...,
|
||||
payload: Any | None = ...,
|
||||
payload: Incomplete | None = ...,
|
||||
replace: bool = ...,
|
||||
partial: bool = ...,
|
||||
no_create: bool = ...,
|
||||
|
||||
@@ -56,10 +56,10 @@ class SearchCommands:
|
||||
fields,
|
||||
no_term_offsets: bool = ...,
|
||||
no_field_flags: bool = ...,
|
||||
stopwords: Any | None = ...,
|
||||
definition: Any | None = ...,
|
||||
stopwords: Incomplete | None = ...,
|
||||
definition: Incomplete | None = ...,
|
||||
max_text_fields: bool = ..., # added in 4.1.1
|
||||
temporary: Any | None = ..., # added in 4.1.1
|
||||
temporary: Incomplete | None = ..., # added in 4.1.1
|
||||
no_highlight: bool = ..., # added in 4.1.1
|
||||
no_term_frequencies: bool = ..., # added in 4.1.1
|
||||
skip_initial_scan: bool = ..., # added in 4.1.1
|
||||
@@ -71,15 +71,15 @@ class SearchCommands:
|
||||
doc_id,
|
||||
nosave: bool = ...,
|
||||
score: float = ...,
|
||||
payload: Any | None = ...,
|
||||
payload: Incomplete | None = ...,
|
||||
replace: bool = ...,
|
||||
partial: bool = ...,
|
||||
language: Any | None = ...,
|
||||
language: Incomplete | None = ...,
|
||||
no_create: bool = ...,
|
||||
**fields,
|
||||
): ...
|
||||
def add_document_hash(self, doc_id, score: float = ..., language: Any | None = ..., replace: bool = ...): ...
|
||||
def delete_document(self, doc_id, conn: Any | None = ..., delete_actual_document: bool = ...): ...
|
||||
def add_document_hash(self, doc_id, score: float = ..., language: Incomplete | None = ..., replace: bool = ...): ...
|
||||
def delete_document(self, doc_id, conn: Incomplete | None = ..., delete_actual_document: bool = ...): ...
|
||||
def load_document(self, id): ...
|
||||
def get(self, *ids): ...
|
||||
def info(self): ...
|
||||
@@ -91,7 +91,9 @@ class SearchCommands:
|
||||
def profile(
|
||||
self, query: str | Query | AggregateRequest, limited: bool = ..., query_params: Mapping[str, str | float] | None = ...
|
||||
) -> tuple[Incomplete, Incomplete]: ...
|
||||
def spellcheck(self, query, distance: Any | None = ..., include: Any | None = ..., exclude: Any | None = ...): ...
|
||||
def spellcheck(
|
||||
self, query, distance: Incomplete | None = ..., include: Incomplete | None = ..., exclude: Incomplete | None = ...
|
||||
): ...
|
||||
def dict_add(self, name, *terms): ...
|
||||
def dict_del(self, name, *terms): ...
|
||||
def dict_dump(self, name): ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
class Query:
|
||||
@@ -5,11 +6,15 @@ class Query:
|
||||
def query_string(self): ...
|
||||
def limit_ids(self, *ids): ...
|
||||
def return_fields(self, *fields): ...
|
||||
def return_field(self, field, as_field: Any | None = ...): ...
|
||||
def return_field(self, field, as_field: Incomplete | None = ...): ...
|
||||
def summarize(
|
||||
self, fields: Any | None = ..., context_len: Any | None = ..., num_frags: Any | None = ..., sep: Any | None = ...
|
||||
self,
|
||||
fields: Incomplete | None = ...,
|
||||
context_len: Incomplete | None = ...,
|
||||
num_frags: Incomplete | None = ...,
|
||||
sep: Incomplete | None = ...,
|
||||
): ...
|
||||
def highlight(self, fields: Any | None = ..., tags: Any | None = ...): ...
|
||||
def highlight(self, fields: Incomplete | None = ..., tags: Incomplete | None = ...): ...
|
||||
def language(self, language): ...
|
||||
def slop(self, slop): ...
|
||||
def in_order(self): ...
|
||||
|
||||
@@ -8,7 +8,7 @@ class TimeSeries(TimeSeriesCommands):
|
||||
MODULE_CALLBACKS: dict[str, Any]
|
||||
client: Any
|
||||
execute_command: Any
|
||||
def __init__(self, client: Any | None = ..., **kwargs) -> None: ...
|
||||
def pipeline(self, transaction: bool = ..., shard_hint: Any | None = ...) -> Pipeline: ...
|
||||
def __init__(self, client: Incomplete | None = ..., **kwargs) -> None: ...
|
||||
def pipeline(self, transaction: bool = ..., shard_hint: Incomplete | None = ...) -> Pipeline: ...
|
||||
|
||||
class Pipeline(TimeSeriesCommands, ClientPipeline[Incomplete]): ... # type: ignore[misc]
|
||||
|
||||
@@ -158,14 +158,14 @@ class SSLConnection(Connection):
|
||||
ssl_certfile=...,
|
||||
ssl_cert_reqs=...,
|
||||
ssl_ca_certs=...,
|
||||
ssl_ca_data: Any | None = ...,
|
||||
ssl_ca_data: Incomplete | None = ...,
|
||||
ssl_check_hostname: bool = ...,
|
||||
ssl_ca_path: Any | None = ...,
|
||||
ssl_password: Any | None = ...,
|
||||
ssl_ca_path: Incomplete | None = ...,
|
||||
ssl_password: Incomplete | None = ...,
|
||||
ssl_validate_ocsp: bool = ...,
|
||||
ssl_validate_ocsp_stapled: bool = ..., # added in 4.1.1
|
||||
ssl_ocsp_context: Any | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_expected_cert: Any | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_context: Incomplete | None = ..., # added in 4.1.1
|
||||
ssl_ocsp_expected_cert: Incomplete | None = ..., # added in 4.1.1
|
||||
**kwargs,
|
||||
) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user