mypy: Remove unused type: ignore comments.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
5b5fda2354
commit
30f241a126
7 changed files with 10 additions and 8 deletions
|
@ -25,7 +25,7 @@ def mock_http_conversation(http_data: Dict[str, Any]) -> Any:
|
|||
if is_raw_response:
|
||||
mock_result._content = http_response.encode() # type: ignore # This modifies a "hidden" attribute.
|
||||
else:
|
||||
mock_result._content = json.dumps(http_response).encode() # type: ignore # See above.
|
||||
mock_result._content = json.dumps(http_response).encode()
|
||||
mock_result.status_code = http_headers.get('status', 200)
|
||||
return mock_result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue