Skip to content

Commit 20baed2

Browse files
fix mypy client
1 parent dd42562 commit 20baed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/pyroclient/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ def create_detection(
235235
"""
236236
if not isinstance(bboxes, (list, tuple)) or len(bboxes) == 0 or len(bboxes) > 5:
237237
raise ValueError("bboxes must be a non-empty list of tuples with a maximum of 5 boxes")
238-
data = {
238+
data: Dict[str, str] = {
239239
"bboxes": _dump_bbox_to_json(bboxes),
240240
}
241-
data["pose_id"] = pose_id
241+
data["pose_id"] = str(pose_id)
242242
return requests.post(
243243
urljoin(self._route_prefix, ClientRoute.DETECTIONS_CREATE),
244244
headers=self.headers,

0 commit comments

Comments
 (0)