Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

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

Andrey Rakhmatullindb5a73f7bb44
diff --git a/tests_typing/test_http_request.mypy-testing b/tests_typing/test_http_request.mypy-testing
index a306b15fe..636e6895f 100644
--- a/tests_typing/test_http_request.mypy-testing
+++ b/tests_typing/test_http_request.mypy-testing
@@ -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=[])