Skip to content

Commit

Permalink
Add "User.Meta" and "AbstractUser.Meta" classes
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba committed Jan 16, 2025
1 parent b7b7ba8 commit d0dea62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion django-stubs/contrib/auth/models.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0dea62

Please sign in to comment.