mirror of https://github.com/scrapy/scrapy.git
Update the expected mypy output to match the old Python one.
This commit is contained in:
parent
8776b4a6fb
commit
db5a73f7bb
|
|
@ -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=[])
|
||||
|
|
|
|||
Loading…
Reference in New Issue