File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
mypy_django_plugin/transformers Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
from typing import IO , Any
2
- from xml .sax .expatreader import ExpatParser
2
+ from xml .sax .expatreader import ExpatParser # type: ignore[import-not-found, unused-ignore]
3
3
4
4
from django .core .serializers import base
5
5
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class ChoicesType(EnumType):
38
38
@deprecated ("ChoicesMeta is deprecated in favor of ChoicesType and will be removed in Django 6.0." )
39
39
class ChoicesMeta (ChoicesType ): ...
40
40
41
- class Choices (enum .Enum , metaclass = ChoicesType ): # type: ignore[misc]
41
+ class Choices (enum .Enum , metaclass = ChoicesType ): # type: ignore[misc, unused-ignore ]
42
42
_label_ : _StrOrPromise
43
43
do_not_call_in_templates : Literal [True ]
44
44
Original file line number Diff line number Diff line change 21
21
# TODO: [mypy 1.14+] Remove this backport of `TypeInfo.enum_members`.
22
22
def _get_enum_members (info : TypeInfo ) -> list [str ]:
23
23
try :
24
- return info .enum_members
24
+ return info .enum_members # type: ignore[attr-defined, no-any-return, unused-ignore]
25
25
except AttributeError : # mypy < 1.14
26
26
pass
27
27
You can’t perform that action at this time.
0 commit comments