File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " labelbox"
3- version = " 6.6.0 "
3+ version = " 6.6.1 "
44description = " Labelbox Python API"
55authors = [{
name =
" Labelbox" ,
email =
" [email protected] " }]
66dependencies = [
Original file line number Diff line number Diff line change 1- from typing import Union
1+ from typing import Union , Optional
22from pydantic import BaseModel
33from enum import Enum
44from labelbox .data .annotation_types .annotation import (
@@ -16,6 +16,7 @@ class Type(Enum):
1616 source : Union [ObjectAnnotation , ClassificationAnnotation ]
1717 target : ObjectAnnotation
1818 type : Type = Type .UNIDIRECTIONAL
19+ read_only : Optional [bool ]
1920
2021
2122class RelationshipAnnotation (BaseAnnotation ):
Original file line number Diff line number Diff line change 1+ from typing import Optional
12from pydantic import BaseModel
23from .base import NDAnnotation , DataRow
34from ...annotation_types .data import GenericDataRowData
@@ -13,7 +14,7 @@ class _Relationship(BaseModel):
1314 source : str
1415 target : str
1516 type : str
16-
17+ read_only : Optional [ bool ]
1718
1819class NDRelationship (NDAnnotation ):
1920 relationship : _Relationship
@@ -50,5 +51,6 @@ def from_common(
5051 source = str (relationship .source ._uuid ),
5152 target = str (relationship .target ._uuid ),
5253 type = relationship .type .value ,
54+ read_only = relationship .read_only ,
5355 ),
5456 )
You can’t perform that action at this time.
0 commit comments