We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14cf3ce commit 2f4f54dCopy full SHA for 2f4f54d
src/globox/annotationset.py
@@ -308,12 +308,12 @@ def from_txt(
308
if p.suffix == image_extension
309
}
310
311
- def get_ann_img_size(p: Path) -> tuple[int, int] | None:
+ def get_ann_img_size(p: Path) -> Optional[tuple[int, int]]:
312
img_path = img_paths[p.stem]
313
return get_image_size(img_path)
314
else:
315
316
317
return None
318
319
def parse_annotation(p: Path) -> Annotation:
0 commit comments