File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11# Changelog
2+ # Version 3.11.1 (2022-01-10)
3+ ## Fix
4+ * Make ` TypedArray ` class compatible with ` numpy ` versions ` >= 1.22.0 `
25
36# Version 3.11.0 (2021-12-15)
47
Original file line number Diff line number Diff line change 11name = "labelbox"
2- __version__ = "3.11.0 "
2+ __version__ = "3.11.1 "
33
44from labelbox .schema .project import Project
55from labelbox .client import Client
Original file line number Diff line number Diff line change 11import sys
2- import logging
32from typing import Generic , TypeVar
43from typing_extensions import Annotated
54
87import numpy as np
98
109Cuid = Annotated [str , Field (min_length = 25 , max_length = 25 )]
11-
1210DType = TypeVar ('DType' )
1311
14- logger = logging .getLogger (__name__ )
1512
13+ class TypedArray (Generic [DType ]):
1614
17- class TypedArray (np .ndarray , Generic [DType ]):
15+ def __new__ (cls , * args , ** kwargs ):
16+ return np .ndarray (* args , ** kwargs )
1817
1918 @classmethod
2019 def __get_validators__ (cls ):
You can’t perform that action at this time.
0 commit comments