Skip to content

Commit d85acdc

Browse files
committed
updated type hint to comply with python pre-commit hook version
1 parent 262e88c commit d85acdc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

synanno/routes/finish.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import json
44
import logging
55
import zipfile
6+
from typing import Optional
67

78
from flask import (
89
Blueprint,
@@ -131,7 +132,7 @@ def create_zip_with_masks() -> io.BytesIO:
131132
return zip_buffer
132133

133134

134-
def get_metadata_for_image_index(img_index: str) -> dict | None:
135+
def get_metadata_for_image_index(img_index: str) -> Optional[dict]:
135136
"""Retrieve metadata for a given image index."""
136137
img_index_int = int(img_index) # noqa: F841
137138
if current_app.df_metadata.query("Image_Index == @img_index_int").to_dict(

0 commit comments

Comments
 (0)