Skip to content

Commit 47e0f25

Browse files
committed
Update ignores
1 parent a0323b9 commit 47e0f25

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
@@ -103,7 +103,7 @@
103103
"Dict entry",
104104
'"FieldValues"',
105105
'base class "Field" defined the type as "bool"',
106-
'Invalid index type "int" for "Union[str, List[Any], Dict[str, Any]]"; expected type "str"',
106+
'Invalid index type "int" for "Union[str, _StrPromise, List[Any], Dict[str, Any]]"; expected type "str"',
107107
'Item "str" of "Union[str, Any]" has no attribute "code"',
108108
'Argument "default" to "CharField" has incompatible type',
109109
'"MultipleChoiceField" has no attribute "partial"',
@@ -149,7 +149,7 @@
149149
'Cannot assign multiple types to name "composed_perm" without an explicit "Type[...]" annotation',
150150
],
151151
"test_relations.py": [
152-
'Invalid index type "int" for "Union[str, List[Any], Dict[str, Any]]"; expected type "str"',
152+
'Invalid index type "int" for "Union[str, _StrPromise, List[Any], Dict[str, Any]]"; expected type "str"',
153153
'Argument "queryset" to "HyperlinkedRelatedField" has incompatible type',
154154
'Incompatible return value type (got "None", expected "HttpResponseBase',
155155
'Argument 2 to "re_path" has incompatible type "Callable[[], None]"; expected "Callable[..., HttpResponseBase]"', # noqa: E501
@@ -213,7 +213,7 @@
213213
'Argument 1 to "to_internal_value" of "Field" has incompatible type "object"',
214214
],
215215
"test_validation_error.py": [
216-
'Argument "detail" to "ValidationError" has incompatible type "Tuple[str, str]"; expected "Optional[Union[str, List[Any], Dict[str, Any]]]"', # noqa: E501
216+
'Argument "detail" to "ValidationError" has incompatible type "Tuple[str, str]"; expected "Optional[Union[str, _StrPromise, List[Any], Dict[str, Any]]]"', # noqa: E501
217217
],
218218
"test_validators.py": [
219219
'Argument "queryset" to "BaseUniqueForValidator" has incompatible type "object";'

0 commit comments

Comments
 (0)