Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up formatting #619

Merged
merged 1 commit into from
Feb 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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