Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions memsource/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down