From bcf7b8be117c69a0f38ae534eed01010ad9580ec Mon Sep 17 00:00:00 2001 From: aluminum-ice Date: Sat, 30 Dec 2023 02:38:08 -0800 Subject: [PATCH] shorted a line to meet PEP8 in the test github action --- src/token_bucket/limiter.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/token_bucket/limiter.py b/src/token_bucket/limiter.py index eb05f82..b3521b5 100644 --- a/src/token_bucket/limiter.py +++ b/src/token_bucket/limiter.py @@ -114,9 +114,11 @@ def consume(self, key: KeyType, num_tokens: int = 1) -> bool: return self._storage.consume(key, num_tokens) def rate(self) -> Union[float, int]: - # Return the token bucket rate, needed for use cases where you dynamically wait based on the remaining tokens + # Return the token bucket rate, needed for use cases where + # you dynamically wait based on the remaining tokens return self._rate def capacity(self) -> int: - # Return the token bucket rate, needed for use cases where you dynamically wait based on the remaining tokens + # Return the token bucket rate, needed for use cases where + # you dynamically wait based on the remaining tokens return self._capacity