Skip to content

Commit 19fe473

Browse files
authored
Tests: Update mypy error message (#798)
Fixes CI failures. I assume it's because of some changes in django-stubs.
1 parent f75f5ca commit 19fe473

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(1) # E: Argument 1 to "APIException" has incompatible type "int"; expected "_APIExceptionInput"
49-
APIException({'a': 1}) # E: Argument 1 to "APIException" has incompatible type "dict[str, int]"; expected "_APIExceptionInput"
50-
APIException({'a': ['test', 1]}) # E: Argument 1 to "APIException" has incompatible type "dict[str, list[str | int]]"; expected "_APIExceptionInput"
49+
APIException({'a': 1}) # E: Dict entry 0 has incompatible type "str": "int"; expected "str": "_StrPromise | Sequence[_APIExceptionInput] | Mapping[str, _APIExceptionInput] | None"
50+
APIException({'a': ['test', 1]}) # E: List item 1 has incompatible type "int"; expected "_StrPromise | Sequence[_APIExceptionInput] | Mapping[str, _APIExceptionInput] | None"

0 commit comments

Comments
 (0)