mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
[redis] Fix type of connection_class in ConnectionPool (#9981)
Update stubs to 4.5.4
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user