Skip to content

Commit 48f2729

Browse files
authored
fix(ci) Fix lint errors from additional ignores (#553)
1 parent ebf6811 commit 48f2729

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

responses/tests/test_matchers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def run():
417417
requests.post(
418418
"http://httpbin.org/post",
419419
data=req_data,
420-
files={"file_name": b"New World!"}, # type: ignore[arg-type]
420+
files={"file_name": b"New World!"},
421421
)
422422

423423
msg = str(excinfo.value)

responses/tests/test_responses.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,7 @@ def run():
717717
match=[matchers.multipart_matcher(req_files, data=req_data)],
718718
callback=request_callback,
719719
)
720-
resp = requests.post(
721-
"http://httpbin.org/post", data=req_data, files=req_files # type: ignore[arg-type]
722-
)
720+
resp = requests.post("http://httpbin.org/post", data=req_data, files=req_files)
723721
assert resp.text == "foo"
724722
assert resp.headers["content-type"] == "application/json"
725723

@@ -747,7 +745,7 @@ def run():
747745
requests.post(
748746
"http://httpbin.org/post",
749747
data={"some": "other", "data": "wrong"},
750-
files=req_files, # type: ignore[arg-type]
748+
files=req_files,
751749
)
752750

753751
assert "multipart/form-data doesn't match." in str(exc.value)

0 commit comments

Comments
 (0)