mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-20 16:48:27 +08:00
Remove many redundant inheritances from Generic[] (#10933)
This commit is contained in:
@@ -289,7 +289,7 @@ PSWorkerThreadExcHandlerT: TypeAlias = PubsubWorkerExceptionHandler | AsyncPubsu
|
||||
CommandT: TypeAlias = tuple[tuple[str | bytes, ...], Mapping[str, Any]]
|
||||
CommandStackT: TypeAlias = list[CommandT]
|
||||
|
||||
class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
class Pipeline(Redis[_StrType]):
|
||||
UNWATCH_COMMANDS: ClassVar[set[str]]
|
||||
connection_pool: Any
|
||||
connection: Any
|
||||
|
||||
@@ -382,7 +382,7 @@ class PubSubWorkerThread(threading.Thread):
|
||||
def run(self) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
|
||||
class Pipeline(Redis[_StrType], Generic[_StrType]):
|
||||
class Pipeline(Redis[_StrType]):
|
||||
UNWATCH_COMMANDS: Any
|
||||
connection_pool: Any
|
||||
connection: Any
|
||||
|
||||
@@ -188,7 +188,7 @@ class ClusterPubSub(PubSub):
|
||||
def execute_command(self, *args, **kwargs) -> None: ...
|
||||
def get_redis_connection(self) -> Redis[Any] | None: ...
|
||||
|
||||
class ClusterPipeline(RedisCluster[_StrType], Generic[_StrType]):
|
||||
class ClusterPipeline(RedisCluster[_StrType]):
|
||||
command_stack: list[Incomplete]
|
||||
nodes_manager: Incomplete
|
||||
refresh_table_asap: bool
|
||||
|
||||
@@ -16,7 +16,7 @@ class ClusterManagementCommands(ManagementCommands):
|
||||
def replicaof(self, *args, **kwargs) -> None: ...
|
||||
def swapdb(self, *args, **kwargs) -> None: ...
|
||||
|
||||
class ClusterDataAccessCommands(DataAccessCommands[_StrType], Generic[_StrType]):
|
||||
class ClusterDataAccessCommands(DataAccessCommands[_StrType]):
|
||||
def stralgo(
|
||||
self,
|
||||
algo,
|
||||
|
||||
Reference in New Issue
Block a user