def is_locked(self, request: AxesHttpRequest, credentials: dict = None) -> bool:
if settings.AXES_LOCK_OUT_AT_FAILURE:<EOL><INDENT>return self.get_failures(request, credentials) >= settings.AXES_FAILURE_LIMIT<EOL><DEDENT>return False<EOL>
Checks if the request or given credentials are locked.