Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 22, 2024
1 parent 34d04be commit c771734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/common/leakage.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def release(self, tokens: int) -> None:
E.g. say you wanted to read 1024 units, but only 24 units were read, then put
back unconsumed 1000 tokens back in the bucket."""
if tokens < 0:
raise ValueError("Cannot release a negative number of tokens")
raise ValueError('Cannot release a negative number of tokens')
self.tokens += tokens
self.tokens = min(self.tokens, self.rate)

Check warning on line 42 in proxy/common/leakage.py

View check run for this annotation

Codecov / codecov/patch

proxy/common/leakage.py#L40-L42

Added lines #L40 - L42 were not covered by tests

Expand Down

0 comments on commit c771734

Please sign in to comment.