From a32c2e3fb26fc46c419535456d6404f2d8b5fb45 Mon Sep 17 00:00:00 2001 From: SaJH Date: Thu, 2 May 2024 16:24:36 +0900 Subject: [PATCH 1/2] 5.0: Update django.contrib.auth.backends --- django-stubs/contrib/auth/backends.pyi | 2 +- scripts/stubtest/allowlist_todo.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/django-stubs/contrib/auth/backends.pyi b/django-stubs/contrib/auth/backends.pyi index 86c68c985..c7e1144a6 100644 --- a/django-stubs/contrib/auth/backends.pyi +++ b/django-stubs/contrib/auth/backends.pyi @@ -40,6 +40,6 @@ _U = TypeVar("_U", bound=AbstractBaseUser) class RemoteUserBackend(ModelBackend): create_unknown_user: bool def clean_username(self, username: str) -> str: ... - def configure_user(self, request: HttpRequest, user: _U) -> _U: ... + def configure_user(self, request: HttpRequest, user: _U, created: bool = True) -> _U: ... class AllowAllUsersRemoteUserBackend(RemoteUserBackend): ... diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index ee4587b36..d1f7182e5 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -80,7 +80,6 @@ django.contrib.auth.admin.UserAdmin.fieldsets django.contrib.auth.admin.UserAdmin.form django.contrib.auth.admin.UserAdmin.get_form django.contrib.auth.backends.RemoteUserBackend.authenticate -django.contrib.auth.backends.RemoteUserBackend.configure_user django.contrib.auth.base_user.AbstractBaseUser.get_session_auth_fallback_hash django.contrib.auth.base_user.AbstractBaseUser.last_login django.contrib.auth.base_user.AbstractBaseUser.password From 2ddc62775ea962c897a91d7c8a027479bb534189 Mon Sep 17 00:00:00 2001 From: SaJH Date: Thu, 2 May 2024 16:42:32 +0900 Subject: [PATCH 2/2] 5.0: Update django.contrib.auth.backends --- django-stubs/contrib/auth/backends.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/contrib/auth/backends.pyi b/django-stubs/contrib/auth/backends.pyi index c7e1144a6..d4f3aeb67 100644 --- a/django-stubs/contrib/auth/backends.pyi +++ b/django-stubs/contrib/auth/backends.pyi @@ -40,6 +40,6 @@ _U = TypeVar("_U", bound=AbstractBaseUser) class RemoteUserBackend(ModelBackend): create_unknown_user: bool def clean_username(self, username: str) -> str: ... - def configure_user(self, request: HttpRequest, user: _U, created: bool = True) -> _U: ... + def configure_user(self, request: HttpRequest, user: _U, created: bool = ...) -> _U: ... class AllowAllUsersRemoteUserBackend(RemoteUserBackend): ...