File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
libs/labelbox/src/labelbox/data Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Type(Enum):
16
16
source : Union [ObjectAnnotation , ClassificationAnnotation ]
17
17
target : ObjectAnnotation
18
18
type : Type = Type .UNIDIRECTIONAL
19
- read_only : Optional [bool ]
19
+ readonly : Optional [bool ] = None
20
20
21
21
22
22
class RelationshipAnnotation (BaseAnnotation ):
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class _Relationship(BaseModel):
14
14
source : str
15
15
target : str
16
16
type : str
17
- read_only : Optional [bool ]
17
+ readonly : Optional [bool ] = None
18
18
19
19
class NDRelationship (NDAnnotation ):
20
20
relationship : _Relationship
@@ -51,6 +51,6 @@ def from_common(
51
51
source = str (relationship .source ._uuid ),
52
52
target = str (relationship .target ._uuid ),
53
53
type = relationship .type .value ,
54
- read_only = relationship .read_only ,
54
+ readonly = relationship .readonly ,
55
55
),
56
56
)
You can’t perform that action at this time.
0 commit comments