diff --git a/tests/typecheck/test_exceptions.yml b/tests/typecheck/test_exceptions.yml index aef825ddd..950518f17 100644 --- a/tests/typecheck/test_exceptions.yml +++ b/tests/typecheck/test_exceptions.yml @@ -46,5 +46,5 @@ APIException() APIException(None, None) APIException(1) # E: Argument 1 to "APIException" has incompatible type "int"; expected "_APIExceptionInput" - APIException({'a': 1}) # E: Argument 1 to "APIException" has incompatible type "dict[str, int]"; expected "_APIExceptionInput" - APIException({'a': ['test', 1]}) # E: Argument 1 to "APIException" has incompatible type "dict[str, list[str | int]]"; expected "_APIExceptionInput" + APIException({'a': 1}) # E: Dict entry 0 has incompatible type "str": "int"; expected "str": "_StrPromise | Sequence[_APIExceptionInput] | Mapping[str, _APIExceptionInput] | None" + APIException({'a': ['test', 1]}) # E: List item 1 has incompatible type "int"; expected "_StrPromise | Sequence[_APIExceptionInput] | Mapping[str, _APIExceptionInput] | None"