From 7ce07f214e843df21d81e323348b2875f874edba Mon Sep 17 00:00:00 2001 From: luandalmazo Date: Fri, 14 Aug 2026 15:17:51 -0300 Subject: [PATCH] add get_list --- datamint/api/endpoints/annotationsets_api.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/datamint/api/endpoints/annotationsets_api.py b/datamint/api/endpoints/annotationsets_api.py index 4aef790e..1dd21acb 100644 --- a/datamint/api/endpoints/annotationsets_api.py +++ b/datamint/api/endpoints/annotationsets_api.py @@ -173,6 +173,16 @@ def get_segmentation_group(self, worklist_id, 'segmentation-group').json() + def get_list(self, limit: int | None = None, **kwargs) -> list[AnnotationWorklist]: + """Not supported: there is no server endpoint to list worklists across all projects. + + Use :meth:`get_by_project` instead. + """ + raise NotImplementedError( + "AnnotationWorklistApi.get_list()/get_all() is not supported. Use " + "get_by_project(project) to list the worklists for a specific project." + ) + def get_by_project(self, project: 'str | Project') -> list[AnnotationWorklist]: """Get the worklist IDs associated with a project.