From c0c5dd5c4469832f0b9c7073f6aad2f55aafc031 Mon Sep 17 00:00:00 2001 From: Rajiv Bakulesh Shah Date: Tue, 1 Feb 2022 19:58:32 -0800 Subject: [PATCH] Clean up formatting (#619) --- pottery/base.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/pottery/base.py b/pottery/base.py index 4cb48e80..beb7c594 100644 --- a/pottery/base.py +++ b/pottery/base.py @@ -191,9 +191,7 @@ def key(self) -> str: @final @contextlib.contextmanager - def __watch_keys(self, - *keys: str, - ) -> Generator[Pipeline, None, None]: + def __watch_keys(self, *keys: str) -> Generator[Pipeline, None, None]: with self.redis.pipeline() as pipeline: pipeline.watch(*keys) # Available since Redis 2.2.0 try: @@ -227,9 +225,7 @@ def __context_managers(self, @final @contextlib.contextmanager - def _watch(self, - *others: Any, - ) -> Generator[Pipeline, None, None]: + def _watch(self, *others: Any) -> Generator[Pipeline, None, None]: 'Watch self and others, and yield a Redis pipeline.' pipelines = [] with contextlib.ExitStack() as stack: @@ -254,9 +250,7 @@ def key(self) -> str: @abc.abstractmethod @contextlib.contextmanager - def _watch(self, - *others: Any, - ) -> Generator[Pipeline, None, None]: + def _watch(self, *others: Any) -> Generator[Pipeline, None, None]: 'Watch self and others, and yield a Redis pipeline.' @final