Skip to content

Commit 2eca4cb

Browse files
committed
types
1 parent 83bfc53 commit 2eca4cb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

labelbox/schema/batch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,18 @@ def project(self) -> Project:
4646
Raises:
4747
LabelboxError: if the project is not found
4848
"""
49-
Project = Entity.Project
5049
query_str = """query getProjectPyApi($projectId: ID!) {
5150
project(
5251
where: {id: $projectId}){
5352
%s
54-
}}""" % query.results_query_part(Project)
53+
}}""" % query.results_query_part(Entity.Project)
5554
params = {"projectId": self.project_id}
5655
response = self.client.execute(query_str, params)
5756

5857
if response is None:
5958
raise ResourceNotFoundError(Project, params)
6059

61-
return Project(self.client, response["project"])
60+
return Entity.Project(self.client, response["project"])
6261

6362
def remove_queued_data_rows(self) -> None:
6463
""" Removes remaining queued data rows from the batch and labeling queue.

0 commit comments

Comments
 (0)