File tree 2 files changed +4
-2
lines changed
django-stubs/contrib/auth
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class Group(models.Model):
36
36
objects : ClassVar [GroupManager ]
37
37
38
38
name : models .CharField [str | int | Combinable , str ]
39
- permissions = models .ManyToManyField (Permission ) # type: ignore[var-annotated]
39
+ permissions = models .ManyToManyField (Permission )
40
40
def natural_key (self ) -> tuple [str ]: ...
41
41
42
42
_T = TypeVar ("_T" , bound = Model )
@@ -60,7 +60,7 @@ class UserManager(BaseUserManager[_T]):
60
60
class PermissionsMixin (models .Model ):
61
61
is_superuser = models .BooleanField ()
62
62
groups = models .ManyToManyField (Group )
63
- user_permissions = models .ManyToManyField (Permission ) # type: ignore[var-annotated]
63
+ user_permissions = models .ManyToManyField (Permission )
64
64
65
65
class Meta :
66
66
abstract : Literal [True ]
Original file line number Diff line number Diff line change 6
6
mypy_django_plugin.main
7
7
- mypy_section : |
8
8
[mypy]
9
+ disable_error_code = var-annotated
9
10
plugins =
10
11
mypy_config : |
11
12
{{ mypy_section }}
92
93
mypy_django_plugin.main
93
94
- mypy_section : |
94
95
[mypy]
96
+ disable_error_code = var-annotated
95
97
plugins =
96
98
mypy_config : |
97
99
{{ mypy_section }}
You can’t perform that action at this time.
0 commit comments