From caceaca974f3224514d5162623d5c43b9a6fdeeb Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Tue, 9 May 2023 16:43:35 +0300 Subject: [PATCH] [redis] Add new methods to `RedisClusterCommands` (#10162) --- stubs/redis/redis/commands/cluster.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stubs/redis/redis/commands/cluster.pyi b/stubs/redis/redis/commands/cluster.pyi index e812f92a3..28789988b 100644 --- a/stubs/redis/redis/commands/cluster.pyi +++ b/stubs/redis/redis/commands/cluster.pyi @@ -1,5 +1,5 @@ from _typeshed import Incomplete -from typing import Generic +from typing import Generic, NoReturn from .core import ACLCommands, DataAccessCommands, ManagementCommands, PubSubCommands, _StrType @@ -57,6 +57,9 @@ class RedisClusterCommands( def cluster_replicas(self, node_id, target_nodes: Incomplete | None = None): ... def cluster_slots(self, target_nodes: Incomplete | None = None): ... def cluster_myshardid(self, target_nodes: Incomplete | None = None): ... + def cluster_links(self, target_node: Incomplete): ... + def cluster_flushslots(self, target_nodes: Incomplete | None = None) -> NoReturn: ... + def cluster_bumpepoch(self, target_nodes: Incomplete | None = None) -> NoReturn: ... read_from_replicas: bool def readonly(self, target_nodes: Incomplete | None = None): ... def readwrite(self, target_nodes: Incomplete | None = None): ...