diff --git a/django-stubs/contrib/auth/models.pyi b/django-stubs/contrib/auth/models.pyi index 78702f1e7..86d0b0150 100644 --- a/django-stubs/contrib/auth/models.pyi +++ b/django-stubs/contrib/auth/models.pyi @@ -84,13 +84,17 @@ class AbstractUser(AbstractBaseUser, PermissionsMixin): EMAIL_FIELD: str USERNAME_FIELD: str + # This ought to inherit from TypedModelMeta + class Meta: ... + def get_full_name(self) -> str: ... def get_short_name(self) -> str: ... def email_user( self, subject: _StrOrPromise, message: _StrOrPromise, from_email: str = ..., **kwargs: Any ) -> None: ... -class User(AbstractUser): ... +class User(AbstractUser): + class Meta(AbstractUser.Meta): ... class AnonymousUser: id: Any