Skip to content

Commit d61b973

Browse files
author
Val Brodsky
committed
Rename IdType(s) to match Adv
1 parent 1e6a0fe commit d61b973

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

labelbox/schema/identifiables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class IdType(str, Enum):
99
- DataRowId: The id assigned to a data row by Labelbox.
1010
- GlobalKey: The id assigned to a data row by the user.
1111
"""
12-
DataRowId = "UID"
13-
GlobalKey = "GLOBAL_KEY"
12+
DataRowId = "ID"
13+
GlobalKey = "GKEY"
1414

1515

1616
class Identifiables:

tests/unit/test_unit_identifiables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ def test_unique_ids():
55
ids = ["a", "b", "c"]
66
identifiables = UniqueIds(ids)
77
assert [i for i in identifiables] == ids
8-
assert identifiables._id_type == "UID"
8+
assert identifiables._id_type == "ID"
99

1010

1111
def test_global_keys():
1212
ids = ["a", "b", "c"]
1313
identifiables = GlobalKeys(ids)
1414
assert [i for i in identifiables] == ids
15-
assert identifiables._id_type == "GLOBAL_KEY"
15+
assert identifiables._id_type == "GKEY"

0 commit comments

Comments
 (0)