django-axes/axes/request.py
Aleksi Häkli b46e7cce01
Drop Python 3.5 support
Most of our users are already running on Python 3.6+
and dropping 3.5 and below in a future oriented release
allows us to focus on implementing more readable codebases.

Fixes #417

Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-03-09 21:49:45 +02:00

15 lines
306 B
Python

from datetime import datetime
from django.http import HttpRequest
class AxesHttpRequest(HttpRequest):
"""
Type definition for the HTTP request Axes uses.
"""
axes_attempt_time: datetime
axes_ip_address: str
axes_user_agent: str
axes_path_info: str
axes_http_accept: str