Skip to content

Commit 6584e1b

Browse files
committed
fixing type hint
1 parent 6adf992 commit 6584e1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datumaro/plugins/datumaro_format/extractor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

55
import os.path as osp
6+
from typing import Union
67

78
from datumaro.components.annotation import (
89
AnnotationType,
@@ -269,7 +270,7 @@ def _load_annotations(self, item: dict):
269270
return loaded
270271

271272
def _load_skeleton_elements_annotations(
272-
self, ann: dict, label_id: int, points: list[float | int]
273+
self, ann: dict, label_id: int, points: list[Union[float, int]]
273274
) -> list[Points]:
274275
if len(points) % 3 != 0:
275276
raise InvalidAnnotationError(

0 commit comments

Comments
 (0)