Skip to content

Commit

Permalink
Mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colin99d committed Jan 5, 2024
1 parent fa53f19 commit acc5c87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slowapi/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def __init__(
self.error_message = error_message
self.exempt_when = exempt_when
self._exempt_when_takes_request = (
len(inspect.signature(self.exempt_when).parameters) == 1
self.exempt_when
and len(inspect.signature(self.exempt_when).parameters) == 1
)
self.cost = cost
self.override_defaults = override_defaults
Expand Down

0 comments on commit acc5c87

Please sign in to comment.