From c3d90db3fb6a2472c682c26accf2ee35c3cda173 Mon Sep 17 00:00:00 2001 From: Maxim Kurnikov Date: Tue, 22 Jan 2019 19:13:07 +0300 Subject: [PATCH] fixes for Meta nested class --- .gitignore | 4 +++- django-stubs/contrib/auth/models.pyi | 6 ------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 5708877..ffb8e8a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ out/ /django .idea/ .mypy_cache/ -django-sources \ No newline at end of file +django-sources +build/ +dist/ \ No newline at end of file diff --git a/django-stubs/contrib/auth/models.pyi b/django-stubs/contrib/auth/models.pyi index d5217e3..52f6b75 100644 --- a/django-stubs/contrib/auth/models.pyi +++ b/django-stubs/contrib/auth/models.pyi @@ -62,8 +62,6 @@ class PermissionsMixin(models.Model): is_superuser: Any = ... groups: Any = ... user_permissions: Any = ... - class Meta: - abstract: bool = ... def get_group_permissions(self, obj: None = ...) -> Set[str]: ... def get_all_permissions(self, obj: Optional[str] = ...) -> Set[str]: ... def has_perm(self, perm: Union[Tuple[str, Any], str], obj: Optional[str] = ...) -> bool: ... @@ -82,10 +80,6 @@ class AbstractUser(AbstractBaseUser, PermissionsMixin): objects: Any = ... EMAIL_FIELD: str = ... USERNAME_FIELD: str = ... - class Meta: - verbose_name: Any = ... - verbose_name_plural: Any = ... - abstract: bool = ... def clean(self) -> None: ... def get_full_name(self) -> str: ... def get_short_name(self) -> str: ...