Skip to content

Commit

Permalink
Fix annotation for request.auser (#2108)
Browse files Browse the repository at this point in the history
* Fix request.auser annotation

* removed tests for request.user
  • Loading branch information
bshelkhonov authored May 2, 2024
1 parent 64a14cc commit ea8e425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-stubs/http/request.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import datetime
from collections.abc import Iterable, Mapping
from io import BytesIO
from re import Pattern
from typing import Any, BinaryIO, Callable, Literal, NoReturn, TypeVar, overload, type_check_only
from typing import Any, Awaitable, BinaryIO, Callable, Literal, NoReturn, TypeVar, overload, type_check_only

from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import AnonymousUser
Expand Down Expand Up @@ -57,7 +57,7 @@ class HttpRequest(BytesIO):
# django.contrib.auth.middleware.AuthenticationMiddleware:
user: AbstractBaseUser | AnonymousUser
# django.contrib.auth.middleware.AuthenticationMiddleware:
auser: Callable[[], AbstractBaseUser | AnonymousUser]
auser: Callable[[], Awaitable[AbstractBaseUser | AnonymousUser]]
# django.middleware.locale.LocaleMiddleware:
LANGUAGE_CODE: str
# django.contrib.sites.middleware.CurrentSiteMiddleware
Expand Down

0 comments on commit ea8e425

Please sign in to comment.