Skip to content

Commit

Permalink
Clean up formatting (#619)
Browse files Browse the repository at this point in the history
  • Loading branch information
brainix authored Feb 2, 2022
1 parent e91bc53 commit c0c5dd5
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pottery/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit c0c5dd5

Please sign in to comment.