Skip to content

Commit bab0c58

Browse files
authored
Add auth.middleware.auser (#1966)
1 parent 7564f79 commit bab0c58

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

django-stubs/contrib/auth/middleware.pyi

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ from django.http.request import HttpRequest
44
from django.utils.deprecation import MiddlewareMixin
55

66
def get_user(request: HttpRequest) -> AnonymousUser | AbstractBaseUser: ...
7+
async def auser(request: HttpRequest) -> AnonymousUser | AbstractBaseUser: ...
78

89
class AuthenticationMiddleware(MiddlewareMixin):
910
def process_request(self, request: HttpRequest) -> None: ...

scripts/stubtest/allowlist_todo_django50.txt

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ django.contrib.admin.views.main.ChangeList.get_queryset
4343
django.contrib.auth.admin.UserAdmin.lookup_allowed
4444
django.contrib.auth.hashers.CryptPasswordHasher
4545
django.contrib.auth.hashers.verify_password
46-
django.contrib.auth.middleware.auser
4746
django.contrib.contenttypes.fields.GenericForeignKey.get_content_type
4847
django.contrib.contenttypes.fields.GenericForeignKey.get_prefetch_querysets
4948
django.contrib.contenttypes.prefetch

0 commit comments

Comments
 (0)