From 5f7059be9555f77e515f0bec131809f034c71f3a Mon Sep 17 00:00:00 2001 From: JohnnyPeng Date: Sat, 21 Aug 2021 11:39:56 +0800 Subject: [PATCH] Fix type annotations in memsource/api.py --- memsource/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memsource/api.py b/memsource/api.py index 531d9f7..7036813 100644 --- a/memsource/api.py +++ b/memsource/api.py @@ -848,7 +848,7 @@ def preTranslate(self, job_parts: List[int], translation_memory_threshold: float })['asyncRequest']) def createAnalysis( - self, job_parts: int, callback_url: str=None, **kwargs) -> models.AsynchronousRequest: + self, job_parts: int, callback_url: str=None, **kwargs) -> Tuple[models.AsynchronousRequest, models.Analysis]: """Create analysis asynchronously. :param job_parts: Make analysis for these job_part ids. @@ -896,7 +896,7 @@ def createJobFromText(self, project_id: int, text: str, target_langs, file_name= def createJob( self, project_id: int, file_path: str, target_langs: (str, list), *, callback_url=None, **kwargs: dict - ) -> Tuple[models.AsynchronousResponse, List[models.JobPart]]: + ) -> Tuple[models.AsynchronousRequest, List[models.JobPart]]: """Create new Job on Memsource asynchronously. :param project_id: Project ID of target project.