File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments