From 7a4fe467ac78d59079df372592721a648a713f74 Mon Sep 17 00:00:00 2001 From: Herman Snevajs Date: Tue, 25 Feb 2025 08:16:00 +0100 Subject: [PATCH] Fix type --- mergin/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mergin/client.py b/mergin/client.py index 86d0f81..192f7e3 100644 --- a/mergin/client.py +++ b/mergin/client.py @@ -1328,14 +1328,14 @@ def remove_workspace_member(self, workspace_id: int, user_id: int): """ self.delete(f"v2/workspaces/{workspace_id}/members/{user_id}") - def list_project_collaborators(self, project_id: int) -> List[dict]: + def list_project_collaborators(self, project_id: str) -> List[dict]: """ Get a list of project collaborators """ project_collaborators = self.get(f"v2/projects/{project_id}/collaborators") return json.load(project_collaborators) - def add_project_collaborator(self, project_id: int, user: str, project_role: ProjectRole) -> dict: + def add_project_collaborator(self, project_id: str, user: str, project_role: ProjectRole) -> dict: """ Add a user to project collaborators and grant them a project role. Fails if user is already a member of the project. @@ -1346,7 +1346,7 @@ def add_project_collaborator(self, project_id: int, user: str, project_role: Pro project_collaborator = self.post(f"v2/projects/{project_id}/collaborators", params, json_headers) return json.load(project_collaborator) - def update_project_collaborator(self, project_id: int, user_id: int, project_role: ProjectRole) -> dict: + def update_project_collaborator(self, project_id: str, user_id: int, project_role: ProjectRole) -> dict: """ Update project role of the existing project collaborator. Fails if user is not a member of the project yet. @@ -1355,7 +1355,7 @@ def update_project_collaborator(self, project_id: int, user_id: int, project_rol project_collaborator = self.patch(f"v2/projects/{project_id}/collaborators/{user_id}", params, json_headers) return json.load(project_collaborator) - def remove_project_collaborator(self, project_id: int, user_id: int): + def remove_project_collaborator(self, project_id: str, user_id: int): """ Remove a user from project collaborators """