Skip to content

Commit 3ac78fa

Browse files
authored
Tests: Fix test after django-stubs StrPromise changes (#518)
Minor change in test error message output.
1 parent 9cedbdc commit 3ac78fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/typecheck/test_exceptions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@
4646
APIException()
4747
APIException(None, None)
4848
APIException(...) # E: Argument 1 to "APIException" has incompatible type "ellipsis"; expected "_APIExceptionInput"
49-
APIException({'a': ...}) # E: Dict entry 0 has incompatible type "str": "ellipsis"; expected "str": "Union[Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
50-
APIException({'a': ['test', ...]}) # E: List item 1 has incompatible type "ellipsis"; expected "Union[Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
49+
APIException({'a': ...}) # E: Dict entry 0 has incompatible type "str": "ellipsis"; expected "str": "Union[_StrPromise, Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
50+
APIException({'a': ['test', ...]}) # E: List item 1 has incompatible type "ellipsis"; expected "Union[_StrPromise, Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"

0 commit comments

Comments
 (0)