Skip to content

Commit 7bf878f

Browse files
committed
fix error for Py3.10
1 parent 7c7a95e commit 7bf878f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/machinevisiontoolbox/ImageConstants.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
import xml.etree.ElementTree as ET
1212
from collections.abc import Iterable
1313
from pathlib import Path
14-
from typing import Any, Self, Sequence
14+
from typing import TYPE_CHECKING, Any, Sequence
15+
16+
if TYPE_CHECKING:
17+
from typing import Self
1518

1619
import cv2 as cv
1720
import numpy as np

0 commit comments

Comments
 (0)