Skip to content

Commit 6f1f0c2

Browse files
authored
Merge pull request #249 from Labelbox/develop
patch
2 parents e1d5882 + 0d1e619 commit 6f1f0c2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
# Version 3.0.1 (2021-08-12)
4+
## Fix
5+
* Issue with inferring text type from export
6+
37
# Version 3.0.0 (2021-08-12)
48
## Added
59
* Annotation types

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "3.0.0"
2+
__version__ = "3.0.1"
33

44
from labelbox.schema.project import Project
55
from labelbox.client import Client

labelbox/data/serialization/labelbox_v1/label.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
VideoObjectAnnotation)
1010
from ...annotation_types.data import ImageData, TextData, VideoData
1111
from ...annotation_types.label import Label
12-
from ...annotation_types.ner import TextEntity
1312
from .classification import LBV1Classifications
14-
from .objects import LBV1Objects
13+
from .objects import LBV1Objects, LBV1TextEntity
1514

1615

1716
class LBV1LabelAnnotations(LBV1Classifications, LBV1Objects):
@@ -220,7 +219,7 @@ def _has_object_annotations(self):
220219
def _has_text_annotations(self):
221220
return len([
222221
annotation for annotation in self.label.objects
223-
if isinstance(annotation, TextEntity)
222+
if isinstance(annotation, LBV1TextEntity)
224223
]) > 0
225224

226225
def _row_contains(self, substrs):

0 commit comments

Comments
 (0)