Skip to content

Commit 40c8e5a

Browse files
Qu4trointgr
authored andcommitted
Update ignores
1 parent 8f1c2a5 commit 40c8e5a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/typecheck_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"Dict entry",
107107
'"FieldValues"',
108108
'base class "Field" defined the type as "bool"',
109-
'Invalid index type "int" for "Union[str, List[Any], Dict[str, Any]]"; expected type "str"',
109+
'Invalid index type "int" for "Union[str, _StrPromise, List[Any], Dict[str, Any]]"; expected type "str"',
110110
'Item "str" of "Union[str, Any]" has no attribute "code"',
111111
'Argument "default" to "CharField" has incompatible type',
112112
'"MultipleChoiceField" has no attribute "partial"',
@@ -152,7 +152,7 @@
152152
'Cannot assign multiple types to name "composed_perm" without an explicit "Type[...]" annotation',
153153
],
154154
"test_relations.py": [
155-
'Invalid index type "int" for "Union[str, List[Any], Dict[str, Any]]"; expected type "str"',
155+
'Invalid index type "int" for "Union[str, _StrPromise, List[Any], Dict[str, Any]]"; expected type "str"',
156156
'Argument "queryset" to "HyperlinkedRelatedField" has incompatible type',
157157
'Incompatible return value type (got "None", expected "HttpResponseBase',
158158
'Argument 2 to "re_path" has incompatible type "Callable[[], None]"; expected "Callable[..., HttpResponseBase]"', # noqa: E501
@@ -216,7 +216,7 @@
216216
'Argument 1 to "to_internal_value" of "Field" has incompatible type "object"',
217217
],
218218
"test_validation_error.py": [
219-
'Argument "detail" to "ValidationError" has incompatible type "Tuple[str, str]"; expected "Optional[Union[str, List[Any], Dict[str, Any]]]"', # noqa: E501
219+
'Argument "detail" to "ValidationError" has incompatible type "Tuple[str, str]"; expected "Optional[Union[str, _StrPromise, List[Any], Dict[str, Any]]]"', # noqa: E501
220220
],
221221
"test_validators.py": [
222222
'Argument "queryset" to "BaseUniqueForValidator" has incompatible type "object";'

0 commit comments

Comments
 (0)