Skip to content

Commit 4c86327

Browse files
committed
fixing the import path since numpy did an update on 6/22/22
1 parent eacadad commit 4c86327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/data/annotation_types/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def validate(cls, val, field: ModelField):
3737

3838

3939
if version.parse(np.__version__) >= version.parse('1.22.0'):
40-
from numpy.typing import _GenericAlias
40+
from numpy._typing import _GenericAlias
4141
TypedArray = _GenericAlias(_TypedArray, (Any, DType))
4242
else:
43-
TypedArray = _TypedArray[Any, DType]
43+
TypedArray = _TypedArray[Any, DType]

0 commit comments

Comments
 (0)