[redis] Fix type of connection_class in ConnectionPool (#9981)

Update stubs to 4.5.4
This commit is contained in:
Raphaël Vinot
2023-03-29 22:16:18 +02:00
committed by GitHub
parent ed915c5cde
commit 51cef77ac5
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
version = "4.5.3"
version = "4.5.4"
# Requires a version of cryptography with a `py.typed` file
requires = ["cryptography>=35.0.0", "types-pyOpenSSL"]

View File

@@ -222,9 +222,11 @@ class SSLConnection(Connection):
class UnixDomainSocketConnection(AbstractConnection):
path: str
socket_timeout: float | None
def __init__(
self,
path: str = "",
socket_timeout: float | None = None,
*,
db: int = 0,
password: str | None = None,
@@ -254,7 +256,7 @@ class ConnectionPool:
@classmethod
def from_url(cls, url: str, *, db: int = ..., decode_components: bool = ..., **kwargs) -> Self: ...
def __init__(
self, connection_class: type[Connection] = ..., max_connections: int | None = None, **connection_kwargs
self, connection_class: type[AbstractConnection] = ..., max_connections: int | None = None, **connection_kwargs
) -> None: ...
def reset(self) -> None: ...
def get_connection(self, command_name: Unused, *keys, **options: _ConnectionPoolOptions) -> Connection: ...