Skip to content

Commit 2f4f54d

Browse files
committed
[FIX] Fix typing
1 parent 14cf3ce commit 2f4f54d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/globox/annotationset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,12 @@ def from_txt(
308308
if p.suffix == image_extension
309309
}
310310

311-
def get_ann_img_size(p: Path) -> tuple[int, int] | None:
311+
def get_ann_img_size(p: Path) -> Optional[tuple[int, int]]:
312312
img_path = img_paths[p.stem]
313313
return get_image_size(img_path)
314314
else:
315315

316-
def get_ann_img_size(p: Path) -> tuple[int, int] | None:
316+
def get_ann_img_size(p: Path) -> Optional[tuple[int, int]]:
317317
return None
318318

319319
def parse_annotation(p: Path) -> Annotation:

0 commit comments

Comments
 (0)