diff --git a/django-stubs/contrib/auth/backends.pyi b/django-stubs/contrib/auth/backends.pyi index 86c68c985..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) -> _U: ... + def configure_user(self, request: HttpRequest, user: _U, created: bool = ...) -> _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