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 1
1
[project ]
2
2
name = " labelbox"
3
- version = " 6.6.0 "
3
+ version = " 6.6.1 "
4
4
description = " Labelbox Python API"
5
5
authors = [{ name = " Labelbox" , email = " engineering@labelbox.com" }]
6
6
dependencies = [
Original file line number Diff line number Diff line change 1
- from typing import Union
1
+ from typing import Union , Optional
2
2
from pydantic import BaseModel
3
3
from enum import Enum
4
4
from labelbox .data .annotation_types .annotation import (
@@ -16,6 +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
20
20
21
21
22
class RelationshipAnnotation (BaseAnnotation ):
Original file line number Diff line number Diff line change
1
+ from typing import Optional
1
2
from pydantic import BaseModel
2
3
from .base import NDAnnotation , DataRow
3
4
from ...annotation_types .data import GenericDataRowData
@@ -13,7 +14,7 @@ class _Relationship(BaseModel):
13
14
source : str
14
15
target : str
15
16
type : str
16
-
17
+ read_only : Optional [ bool ]
17
18
18
19
class NDRelationship (NDAnnotation ):
19
20
relationship : _Relationship
@@ -50,5 +51,6 @@ def from_common(
50
51
source = str (relationship .source ._uuid ),
51
52
target = str (relationship .target ._uuid ),
52
53
type = relationship .type .value ,
54
+ read_only = relationship .read_only ,
53
55
),
54
56
)
You can’t perform that action at this time.
0 commit comments