Skip to content

Commit

Permalink
mypy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansingman committed Aug 1, 2023
1 parent 24b4733 commit 2603868
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cleanlab_studio/internal/api/api.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import io
import os
import time
from itertools import chain
from typing import Callable, List, Optional, Tuple, Dict, Union, Any
from typing import Callable, cast, List, Optional, Tuple, Dict, Union, Any
from cleanlab_studio.errors import APIError

import requests
Expand Down Expand Up @@ -371,4 +370,4 @@ def get_prediction_status(api_key: str, query_id: str) -> Dict[str, str]:
)
handle_api_error(res)

return res.json()
return cast(dict, res.json())

0 comments on commit 2603868

Please sign in to comment.