Skip to content

Commit

Permalink
Tests: Fix test after django-stubs StrPromise changes (#518)
Browse files Browse the repository at this point in the history
Minor change in test error message output.
  • Loading branch information
intgr authored Dec 8, 2023
1 parent 9cedbdc commit 3ac78fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/typecheck/test_exceptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
APIException()
APIException(None, None)
APIException(...) # E: Argument 1 to "APIException" has incompatible type "ellipsis"; expected "_APIExceptionInput"
APIException({'a': ...}) # E: Dict entry 0 has incompatible type "str": "ellipsis"; expected "str": "Union[Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
APIException({'a': ['test', ...]}) # E: List item 1 has incompatible type "ellipsis"; expected "Union[Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
APIException({'a': ...}) # E: Dict entry 0 has incompatible type "str": "ellipsis"; expected "str": "Union[_StrPromise, Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
APIException({'a': ['test', ...]}) # E: List item 1 has incompatible type "ellipsis"; expected "Union[_StrPromise, Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"

0 comments on commit 3ac78fa

Please sign in to comment.