mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 05:24:53 +08:00
fixes for Meta nested class
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -5,4 +5,6 @@ out/
|
|||||||
/django
|
/django
|
||||||
.idea/
|
.idea/
|
||||||
.mypy_cache/
|
.mypy_cache/
|
||||||
django-sources
|
django-sources
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
@@ -62,8 +62,6 @@ class PermissionsMixin(models.Model):
|
|||||||
is_superuser: Any = ...
|
is_superuser: Any = ...
|
||||||
groups: Any = ...
|
groups: Any = ...
|
||||||
user_permissions: Any = ...
|
user_permissions: Any = ...
|
||||||
class Meta:
|
|
||||||
abstract: bool = ...
|
|
||||||
def get_group_permissions(self, obj: None = ...) -> Set[str]: ...
|
def get_group_permissions(self, obj: None = ...) -> Set[str]: ...
|
||||||
def get_all_permissions(self, obj: Optional[str] = ...) -> 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: ...
|
def has_perm(self, perm: Union[Tuple[str, Any], str], obj: Optional[str] = ...) -> bool: ...
|
||||||
@@ -82,10 +80,6 @@ class AbstractUser(AbstractBaseUser, PermissionsMixin):
|
|||||||
objects: Any = ...
|
objects: Any = ...
|
||||||
EMAIL_FIELD: str = ...
|
EMAIL_FIELD: str = ...
|
||||||
USERNAME_FIELD: str = ...
|
USERNAME_FIELD: str = ...
|
||||||
class Meta:
|
|
||||||
verbose_name: Any = ...
|
|
||||||
verbose_name_plural: Any = ...
|
|
||||||
abstract: bool = ...
|
|
||||||
def clean(self) -> None: ...
|
def clean(self) -> None: ...
|
||||||
def get_full_name(self) -> str: ...
|
def get_full_name(self) -> str: ...
|
||||||
def get_short_name(self) -> str: ...
|
def get_short_name(self) -> str: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user