Skip to content

Commit 8c0c935

Browse files
authored
Merge pull request #159 from Labelbox/develop
V2.5.6
2 parents e129fab + 9d37d5a commit 8c0c935

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
# Version 2.5.6 (2021-05-19)
3+
## Fix
4+
* MAL validation no longer raises exception when NER tool has same start and end location
5+
26
# Version 2.5.5 (2021-05-17)
37
## Added
48
* `DataRow` now has a `media_attributes` field

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
copyright = '2021, Labelbox'
2222
author = 'Labelbox'
2323

24-
release = '2.5.5'
24+
release = '2.5.6'
2525

2626
# -- General configuration ---------------------------------------------------
2727

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__ = "2.5.5"
2+
__version__ = "2.5.6"
33

44
from labelbox.client import Client
55
from labelbox.schema.bulk_import_request import BulkImportRequest

labelbox/schema/bulk_import_request.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,10 @@ def is_valid_location(cls, v):
760760
f"A line must have at least 2 points to be valid. Found {v}")
761761
if v['start'] < 0:
762762
raise ValueError(f"Text location must be positive. Found {v}")
763-
if v['start'] >= v['end']:
763+
if v['start'] > v['end']:
764764
raise ValueError(
765-
f"Text start location must be less than end. Found {v}")
765+
f"Text start location must be less or equal than end. Found {v}"
766+
)
766767
return v
767768

768769

0 commit comments

Comments
 (0)