diff --git a/django-stubs/contrib/auth/__init__.pyi b/django-stubs/contrib/auth/__init__.pyi index f3c8eb1ca..4590ade3a 100644 --- a/django-stubs/contrib/auth/__init__.pyi +++ b/django-stubs/contrib/auth/__init__.pyi @@ -18,13 +18,19 @@ REDIRECT_FIELD_NAME: str def load_backend(path: str) -> ModelBackend: ... def get_backends() -> list[ModelBackend]: ... -def authenticate(request: Any = ..., **credentials: Any) -> AbstractBaseUser | None: ... +def authenticate(request: HttpRequest = ..., **credentials: Any) -> AbstractBaseUser | None: ... def login( request: HttpRequest, user: AbstractBaseUser | None, backend: type[ModelBackend] | str | None = ..., ) -> None: ... def logout(request: HttpRequest) -> None: ... +async def aauthenticate(request: HttpRequest = ..., **credentials: Any) -> AbstractBaseUser | None: ... +async def alogin( + request: HttpRequest, + user: AbstractBaseUser | None, + backend: type[ModelBackend] | str | None = ..., +) -> None: ... def get_user_model() -> type[AbstractBaseUser]: ... def get_user(request: HttpRequest | Client) -> AbstractBaseUser | AnonymousUser: ... def get_permission_codename(action: str, opts: Options[Any]) -> str: ...