Skip to content

Commit e673bac

Browse files
committed
Restore typecheck_tests.py ignores
1 parent ffa7cc3 commit e673bac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/typecheck_tests.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
'"BaseTokenAuthTests" has no attribute "assertNumQueries"',
6161
'Module "django.middleware.csrf" has no attribute "_mask_cipher_secret"',
6262
"All conditional function variants must have identical signatures",
63+
"note: def _get_new_csrf_token() ->",
64+
"note: Original:",
65+
"note: Redefinition:",
6366
],
6467
"schemas": [
6568
'(expression has type "CharField", base class "Field" defined the type as "bool")',
@@ -77,6 +80,7 @@
7780
'Argument "patterns" to "SchemaGenerator" has incompatible type "List[object]"',
7881
'Argument 1 to "field_to_schema" has incompatible type "object"; expected "Field[Any, Any, Any, Any]"',
7982
'Argument "help_text" to "CharField" has incompatible type "_StrPromise"',
83+
'"Module rest_framework.schemas.coreapi" does not explicitly export attribute "coreapi"',
8084
],
8185
"browsable_api": [
8286
'(expression has type "List[Dict[str, Dict[str, int]]]", base class "GenericAPIView" defined the type as "Union[QuerySet[_MT?], Manager[_MT?], None]")', # noqa: E501
@@ -114,7 +118,7 @@
114118
'Argument "params" to "ValidationError" has incompatible type "Tuple[str]"',
115119
'"MultipleChoiceField[Model]" has no attribute "partial"',
116120
'Argument 1 to "to_internal_value" of "Field" has incompatible type "Dict[str, str]"; expected "List[Any]"',
117-
'Module "rest_framework.fields" has no attribute "DjangoImageField"; maybe "ImageField"?',
121+
'Module "rest_framework.fields" does not explicitly export attribute "DjangoImageField"',
118122
'Argument 1 to "ListField" has incompatible type "CharField"; expected "bool"',
119123
"Possible overload variants:",
120124
"def __init__(self, *, mutable: Literal[True], query_string: Union[str, bytes, None] = ..., encoding: Optional[str] = ...) -> QueryDict", # noqa: E501

0 commit comments

Comments
 (0)