|
11 | 11 | from google.api_core import retry
|
12 | 12 | import requests
|
13 | 13 | import requests.exceptions
|
14 |
| -from labelbox.data.annotation_types.feature import FeatureSchema |
15 |
| -from labelbox.data.serialization.ndjson.base import DataRow |
16 | 14 |
|
17 | 15 | import labelbox.exceptions
|
18 | 16 | from labelbox import utils
|
@@ -621,7 +619,7 @@ def get_roles(self) -> List[Role]:
|
621 | 619 | """
|
622 | 620 | return role.get_roles(self)
|
623 | 621 |
|
624 |
| - def get_data_row(self, data_row_id) -> DataRow: |
| 622 | + def get_data_row(self, data_row_id): |
625 | 623 | """
|
626 | 624 |
|
627 | 625 | Returns:
|
@@ -750,7 +748,7 @@ def get_ontologies(self, name_contains) -> PaginatedCollection:
|
750 | 748 | ['ontologies', 'nodes'], Entity.Ontology,
|
751 | 749 | ['ontologies', 'nextCursor'])
|
752 | 750 |
|
753 |
| - def get_feature_schema(self, feature_schema_id) -> FeatureSchema: |
| 751 | + def get_feature_schema(self, feature_schema_id): |
754 | 752 | """
|
755 | 753 | Fetches a feature schema. Only supports top level feature schemas.
|
756 | 754 |
|
@@ -867,7 +865,7 @@ def create_ontology(self, name, normalized) -> Ontology:
|
867 | 865 | res = self.execute(query_str, params)
|
868 | 866 | return Entity.Ontology(self, res['upsertOntology'])
|
869 | 867 |
|
870 |
| - def create_feature_schema(self, normalized) -> FeatureSchema: |
| 868 | + def create_feature_schema(self, normalized): |
871 | 869 | """
|
872 | 870 | Creates a feature schema from normalized data.
|
873 | 871 | >>> normalized = {'tool': 'polygon', 'name': 'cat', 'color': 'black'}
|
|
0 commit comments