mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
fix(redis): add missing __enter__ and __exit__ methods on Redis (#4655)
This commit is contained in:
2
third_party/2and3/redis/client.pyi
vendored
2
third_party/2and3/redis/client.pyi
vendored
@@ -340,6 +340,8 @@ class Redis(object):
|
||||
def pubsub_numpat(self) -> int: ...
|
||||
def monitor(self) -> Monitor: ...
|
||||
def cluster(self, cluster_arg: str, *args: Any) -> Any: ...
|
||||
def __enter__(self) -> Redis: ...
|
||||
def __exit__(self, exc_type, exc_value, traceback): ...
|
||||
|
||||
StrictRedis = Redis
|
||||
|
||||
|
||||
Reference in New Issue
Block a user