Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# Version 3.0.1 (2021-08-12)
## Fix
* Issue with inferring text type from export

# Version 3.0.0 (2021-08-12)
## Added
* Annotation types
Expand Down
2 changes: 1 addition & 1 deletion labelbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "labelbox"
__version__ = "3.0.0"
__version__ = "3.0.1"

from labelbox.schema.project import Project
from labelbox.client import Client
Expand Down
5 changes: 2 additions & 3 deletions labelbox/data/serialization/labelbox_v1/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
VideoObjectAnnotation)
from ...annotation_types.data import ImageData, TextData, VideoData
from ...annotation_types.label import Label
from ...annotation_types.ner import TextEntity
from .classification import LBV1Classifications
from .objects import LBV1Objects
from .objects import LBV1Objects, LBV1TextEntity


class LBV1LabelAnnotations(LBV1Classifications, LBV1Objects):
Expand Down Expand Up @@ -220,7 +219,7 @@ def _has_object_annotations(self):
def _has_text_annotations(self):
return len([
annotation for annotation in self.label.objects
if isinstance(annotation, TextEntity)
if isinstance(annotation, LBV1TextEntity)
]) > 0

def _row_contains(self, substrs):
Expand Down