Remove many redundant inheritances from Generic[] (#10933)

This commit is contained in:
Alex Waygood
2023-10-26 19:07:20 +01:00
committed by GitHub
parent 5dbdd59c9b
commit a08d4c8d2e
30 changed files with 81 additions and 81 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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,