Skip to content

Commit c3e5f5f

Browse files
committed
ignore code instead
1 parent e22d0d6 commit c3e5f5f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

django-stubs/contrib/auth/models.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Group(models.Model):
3636
objects: ClassVar[GroupManager]
3737

3838
name: models.CharField[str | int | Combinable, str]
39-
permissions = models.ManyToManyField(Permission) # type: ignore[var-annotated]
39+
permissions = models.ManyToManyField(Permission)
4040
def natural_key(self) -> tuple[str]: ...
4141

4242
_T = TypeVar("_T", bound=Model)
@@ -60,7 +60,7 @@ class UserManager(BaseUserManager[_T]):
6060
class PermissionsMixin(models.Model):
6161
is_superuser = models.BooleanField()
6262
groups = models.ManyToManyField(Group)
63-
user_permissions = models.ManyToManyField(Permission) # type: ignore[var-annotated]
63+
user_permissions = models.ManyToManyField(Permission)
6464

6565
class Meta:
6666
abstract: Literal[True]

tests/typecheck/fields/test_base.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
mypy_django_plugin.main
77
- mypy_section: |
88
[mypy]
9+
disable_error_code = var-annotated
910
plugins =
1011
mypy_config: |
1112
{{ mypy_section }}
@@ -92,6 +93,7 @@
9293
mypy_django_plugin.main
9394
- mypy_section: |
9495
[mypy]
96+
disable_error_code = var-annotated
9597
plugins =
9698
mypy_config: |
9799
{{ mypy_section }}

0 commit comments

Comments
 (0)