Skip to content

Commit

Permalink
mypy types
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik committed Dec 29, 2024
1 parent 863e832 commit 6908909
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ninja/throttling.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ def parse_rate(self, rate: Optional[str]) -> Tuple[Optional[int], Optional[int]]
else:
multi, period = int(rest), 1

count = int(count)
return count, multi * period
return int(count), multi * period

except (ValueError, IndexError):
raise ValueError(f"Invalid rate format: {rate}") from None
Expand Down

0 comments on commit 6908909

Please sign in to comment.