mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
redis client: adding __del__ and close (#5365)
* redis client: adding __del__ and close
This commit is contained in:
@@ -778,6 +778,8 @@ class Redis(Generic[_StrType]):
|
||||
def cluster(self, cluster_arg: str, *args: Any) -> Any: ...
|
||||
def __enter__(self) -> Redis: ...
|
||||
def __exit__(self, exc_type, exc_value, traceback): ...
|
||||
def __del__(self) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def client(self) -> Redis: ...
|
||||
|
||||
StrictRedis = Redis
|
||||
|
||||
Reference in New Issue
Block a user