We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 262e88c commit d85acdcCopy full SHA for d85acdc
1 file changed
synanno/routes/finish.py
@@ -3,6 +3,7 @@
3
import json
4
import logging
5
import zipfile
6
+from typing import Optional
7
8
from flask import (
9
Blueprint,
@@ -131,7 +132,7 @@ def create_zip_with_masks() -> io.BytesIO:
131
132
return zip_buffer
133
134
-def get_metadata_for_image_index(img_index: str) -> dict | None:
135
+def get_metadata_for_image_index(img_index: str) -> Optional[dict]:
136
"""Retrieve metadata for a given image index."""
137
img_index_int = int(img_index) # noqa: F841
138
if current_app.df_metadata.query("Image_Index == @img_index_int").to_dict(
0 commit comments