fixes for Meta nested class

This commit is contained in:
Maxim Kurnikov
2019-01-22 19:13:07 +03:00
parent 87877774cd
commit c3d90db3fb
2 changed files with 3 additions and 7 deletions

2
.gitignore vendored
View File

@@ -6,3 +6,5 @@ out/
.idea/
.mypy_cache/
django-sources
build/
dist/

View File

@@ -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: ...