mypy: Remove unused type: ignore comments.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-03-04 15:09:27 -08:00
parent 5b5fda2354
commit 30f241a126
7 changed files with 10 additions and 8 deletions

View file

@ -58,7 +58,7 @@ def make_api_call(path: str) -> Optional[List[Dict[str, Any]]]:
"Content-Type": "application/json",
"Accept": "application/json"})
if response.status_code == 200:
return json.loads(response.text) # type: ignore # dynamic import
return json.loads(response.text)
if response.status_code >= 500:
logging.error(str(response.status_code))