Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[translation] small fixes found while updating samples #17542

Merged
merged 1 commit into from
Mar 25, 2021
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def __init__(
**kwargs
):
# type: (**Any) -> None
self.translated_document_url = kwargs['translated_document_url']
self.translated_document_url = kwargs.get('translated_document_url', None)
self.created_on = kwargs['created_on']
self.last_updated_on = kwargs['last_updated_on']
self.status = kwargs['status']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ async def create_translation_job(self, inputs, **kwargs):
# pylint: disable=protected-access
inputs=DocumentTranslationInput._to_generated_list(inputs),
cls=lambda pipeline_response, _, response_headers: response_headers,
polling=True,
**kwargs
)

Expand Down Expand Up @@ -159,7 +158,7 @@ def callback(raw_response):
**kwargs
),
)
return poller.result()
return await poller.result()

@distributed_trace
def list_submitted_jobs(self, **kwargs):
Expand Down