Skip to content

Commit 6db23f0

Browse files
author
Matt Sokoloff
committed
fix circular import
1 parent 16d1652 commit 6db23f0

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
# Version 3.6.1 (2021-04-10)
3+
* Fix import error that appears when exporting labels
4+
25
# Version 3.6.0 (2021-04-10)
36
## Added
47
* Bulk export metadata with `DataRowMetadataOntology.bulk_export()`

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "3.6.0"
2+
__version__ = "3.6.1"
33

44
from labelbox.schema.project import Project
55
from labelbox.client import Client

labelbox/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,3 +658,10 @@ def create_model(self, name, ontology_id):
658658
"ontologyId": ontology_id
659659
})
660660
return Model(self, result['createModel'])
661+
662+
#def get_data_row_ids_for_external_ids():
663+
#
664+
# externalIdsToDataRowIds(externalId_in: [String!]!):[ExternalIdsToDataRowIdsResponse!]!
665+
# @ Richard for the sake of consistency would it be possible to just return
666+
# externalIdsToDataRowIds(externalId_in: [String!]!): [DataRow!]!
667+
#So is there no pagination? What if airbnb passes in 1m results?

labelbox/data/annotation_types/label.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from pydantic import BaseModel, validator
55

6+
import labelbox
67
from labelbox.schema import ontology
78
from .annotation import (ClassificationAnnotation, ObjectAnnotation,
89
VideoClassificationAnnotation, VideoObjectAnnotation)
@@ -12,7 +13,6 @@
1213
from .metrics import ScalarMetric, ConfusionMatrixMetric
1314
from .types import Cuid
1415
from ..ontology import get_feature_schema_lookup
15-
from ... import Dataset
1616

1717

1818
class Label(BaseModel):
@@ -103,7 +103,7 @@ def add_url_to_masks(self, signer) -> "Label":
103103
mask.create_url(signer)
104104
return self
105105

106-
def create_data_row(self, dataset: "Dataset",
106+
def create_data_row(self, dataset: "labelbox.Dataset",
107107
signer: Callable[[bytes], str]) -> "Label":
108108
"""
109109
Creates a data row and adds to the given dataset.

0 commit comments

Comments
 (0)