Skip to content

Commit 262c21a

Browse files
authored
Merge pull request #157 from ccrndn/fix_start_end
NDTextEntity: fix "start >= end" test
2 parents 4245636 + 91d807c commit 262c21a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/schema/bulk_import_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,9 @@ 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}")
766766
return v
767767

768768

0 commit comments

Comments
 (0)