summaryrefslogtreecommitdiff
path: root/stubs
diff options
context:
space:
mode:
authorAndrej Shadura <andrewsh@debian.org>2021-03-22 18:36:24 +0100
committerAndrej Shadura <andrewsh@debian.org>2021-03-22 18:36:24 +0100
commit219ec5d1cff9f388d0be41e02d8984e733fa99d0 (patch)
treef930bd620a36c1255d9c2498d000daf32b96fee9 /stubs
parenta164b24227153a3ffe4d9adbb9bb1c1e981efe39 (diff)
New upstream version 1.30.0
Diffstat (limited to 'stubs')
-rw-r--r--stubs/txredisapi.pyi6
1 files changed, 4 insertions, 2 deletions
diff --git a/stubs/txredisapi.pyi b/stubs/txredisapi.pyi
index 618548a3..080ca402 100644
--- a/stubs/txredisapi.pyi
+++ b/stubs/txredisapi.pyi
@@ -17,7 +17,9 @@
"""
from typing import Any, List, Optional, Type, Union
-class RedisProtocol:
+from twisted.internet import protocol
+
+class RedisProtocol(protocol.Protocol):
def publish(self, channel: str, message: bytes): ...
async def ping(self) -> None: ...
async def set(
@@ -52,7 +54,7 @@ def lazyConnection(
class ConnectionHandler: ...
-class RedisFactory:
+class RedisFactory(protocol.ReconnectingClientFactory):
continueTrying: bool
handler: RedisProtocol
pool: List[RedisProtocol]