We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49b418a commit 6a1429dCopy full SHA for 6a1429d
libs/labelbox/src/labelbox/schema/identifiable.py
@@ -2,6 +2,7 @@
2
from typing import Union
3
4
from labelbox.schema.id_type import IdType
5
+from pydantic.dataclasses import dataclass
6
7
8
class Identifiable(ABC):
@@ -31,6 +32,7 @@ def __str__(self):
31
32
return f"{self.id_type}:{self.key}"
33
34
35
+@dataclass
36
class UniqueId(Identifiable):
37
"""
38
Represents a unique, internally generated id.
@@ -40,6 +42,7 @@ def __init__(self, key: str):
40
42
super().__init__(key, IdType.DataRowId)
41
43
44
45
46
class GlobalKey(Identifiable):
47
48
Represents a user generated id.
0 commit comments