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 1
1
# Changelog
2
+ # Version 3.11.1 (2022-01-10)
3
+ ## Fix
4
+ * Make ` TypedArray ` class compatible with ` numpy ` versions ` >= 1.22.0 `
2
5
3
6
# Version 3.11.0 (2021-12-15)
4
7
Original file line number Diff line number Diff line change 1
1
name = "labelbox"
2
- __version__ = "3.11.0 "
2
+ __version__ = "3.11.1 "
3
3
4
4
from labelbox .schema .project import Project
5
5
from labelbox .client import Client
Original file line number Diff line number Diff line change 1
1
import sys
2
- import logging
3
2
from typing import Generic , TypeVar
4
3
from typing_extensions import Annotated
5
4
8
7
import numpy as np
9
8
10
9
Cuid = Annotated [str , Field (min_length = 25 , max_length = 25 )]
11
-
12
10
DType = TypeVar ('DType' )
13
11
14
- logger = logging .getLogger (__name__ )
15
12
13
+ class TypedArray (Generic [DType ]):
16
14
17
- class TypedArray (np .ndarray , Generic [DType ]):
15
+ def __new__ (cls , * args , ** kwargs ):
16
+ return np .ndarray (* args , ** kwargs )
18
17
19
18
@classmethod
20
19
def __get_validators__ (cls ):
You can’t perform that action at this time.
0 commit comments