Skip to content

Commit 53224d5

Browse files
authored
Merge pull request #426 from Labelbox/ms/fix
import fix
2 parents 49c694f + aa502b4 commit 53224d5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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'}

0 commit comments

Comments
 (0)