Update the expected mypy output to match the old Python one.

This commit is contained in:
Andrey Rakhmatullin 2023-11-15 12:02:39 +04:00
parent 8776b4a6fb
commit db5a73f7bb
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ class MyRequest2(Request):
@pytest.mark.mypy_testing
def mypy_test_headers():
Request("data:,", headers=1) # E: Argument "headers" to "Request" has incompatible type "int"; expected "Mapping[str, Any] | Iterable[tuple[str, Any]] | None"
Request("data:,", headers=1) # E: Argument "headers" to "Request" has incompatible type "int"; expected "Union[Mapping[str, Any], Iterable[Tuple[str, Any]], None]"
Request("data:,", headers=None)
Request("data:,", headers={})
Request("data:,", headers=[])