Skip to content

Commit 7d32432

Browse files
authored
Merge pull request #300 from Labelbox/ms/fix-import
fix circular import
2 parents 16d1652 + 1ffcc40 commit 7d32432

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-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/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)