Skip to content

Commit 9322758

Browse files
authored
Merge pull request #504 from Cyniikal/patch-1
Add type annotation to get_project
2 parents 77cd2c5 + 0f64bf4 commit 9322758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labelbox/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def _get_single(self, db_object_type, uid):
404404
else:
405405
return db_object_type(self, res)
406406

407-
def get_project(self, project_id):
407+
def get_project(self, project_id) -> Project:
408408
""" Gets a single Project with the given ID.
409409
410410
>>> project = client.get_project("<project_id>")
@@ -918,4 +918,4 @@ def get_model_run(self, model_run_id: str) -> ModelRun:
918918
Returns:
919919
A ModelRun object.
920920
"""
921-
return self._get_single(Entity.ModelRun, model_run_id)
921+
return self._get_single(Entity.ModelRun, model_run_id)

0 commit comments

Comments
 (0)