Skip to content

Commit 1a7703d

Browse files
authored
Merge pull request #425 from Labelbox/develop
3.13.1
2 parents d45d9e8 + 53224d5 commit 1a7703d

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

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.13.0"
2+
__version__ = "3.13.1"
33

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

labelbox/client.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
from google.api_core import retry
1212
import requests
1313
import requests.exceptions
14-
from labelbox.data.annotation_types.feature import FeatureSchema
15-
from labelbox.data.serialization.ndjson.base import DataRow
1614

1715
import labelbox.exceptions
1816
from labelbox import utils
@@ -621,7 +619,7 @@ def get_roles(self) -> List[Role]:
621619
"""
622620
return role.get_roles(self)
623621

624-
def get_data_row(self, data_row_id) -> DataRow:
622+
def get_data_row(self, data_row_id):
625623
"""
626624
627625
Returns:
@@ -750,7 +748,7 @@ def get_ontologies(self, name_contains) -> PaginatedCollection:
750748
['ontologies', 'nodes'], Entity.Ontology,
751749
['ontologies', 'nextCursor'])
752750

753-
def get_feature_schema(self, feature_schema_id) -> FeatureSchema:
751+
def get_feature_schema(self, feature_schema_id):
754752
"""
755753
Fetches a feature schema. Only supports top level feature schemas.
756754
@@ -867,7 +865,7 @@ def create_ontology(self, name, normalized) -> Ontology:
867865
res = self.execute(query_str, params)
868866
return Entity.Ontology(self, res['upsertOntology'])
869867

870-
def create_feature_schema(self, normalized) -> FeatureSchema:
868+
def create_feature_schema(self, normalized):
871869
"""
872870
Creates a feature schema from normalized data.
873871
>>> normalized = {'tool': 'polygon', 'name': 'cat', 'color': 'black'}

labelbox/schema/project.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import requests
1414

1515
from labelbox import utils
16-
from labelbox.data.annotation_types.collection import LabelGenerator
1716
from labelbox.exceptions import InvalidQueryError, LabelboxError
1817
from labelbox.orm import query
1918
from labelbox.orm.db_object import DbObject, Updateable, Deletable
@@ -194,9 +193,7 @@ def export_queued_data_rows(self,
194193
self.uid)
195194
time.sleep(sleep_time)
196195

197-
def video_label_generator(self,
198-
timeout_seconds=600,
199-
**kwargs) -> LabelGenerator:
196+
def video_label_generator(self, timeout_seconds=600, **kwargs):
200197
"""
201198
Download video annotations
202199
@@ -225,7 +222,7 @@ def video_label_generator(self,
225222
"Or use project.label_generator() for text and imagery data.")
226223
return LBV1Converter.deserialize_video(json_data, self.client)
227224

228-
def label_generator(self, timeout_seconds=600, **kwargs) -> LabelGenerator:
225+
def label_generator(self, timeout_seconds=600, **kwargs):
229226
"""
230227
Download text and image annotations
231228

0 commit comments

Comments
 (0)