diff --git a/stubs/redis/METADATA.toml b/stubs/redis/METADATA.toml index f608be89e..8864f4e1d 100644 --- a/stubs/redis/METADATA.toml +++ b/stubs/redis/METADATA.toml @@ -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"] diff --git a/stubs/redis/redis/connection.pyi b/stubs/redis/redis/connection.pyi index f6840ee58..71af4cc77 100644 --- a/stubs/redis/redis/connection.pyi +++ b/stubs/redis/redis/connection.pyi @@ -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: ...