mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Specify abstract methods with correct return types
This commit is contained in:
parent
88693b8d3f
commit
5f2541dfc7
1 changed files with 8 additions and 5 deletions
|
|
@ -6,11 +6,14 @@ class AxesTestHandler(AxesHandler): # pylint: disable=unused-argument
|
|||
Signal handler implementation that does nothing, ideal for a test suite.
|
||||
"""
|
||||
|
||||
def is_allowed(self, request, credentials: dict = None) -> bool:
|
||||
return True
|
||||
|
||||
def reset_attempts(self, *, ip_address: str = None, username: str = None) -> int:
|
||||
pass
|
||||
return 0
|
||||
|
||||
def reset_logs(self, *, age_days: int = None) -> int:
|
||||
pass
|
||||
return 0
|
||||
|
||||
def is_allowed(self, request, credentials: dict = None) -> bool:
|
||||
return True
|
||||
|
||||
def get_failures(self, request, credentials: dict = None) -> int:
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue