Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinaperalta committed Mar 8, 2021
1 parent edd4b35 commit 0872f9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ def begin_recognize_business_cards_from_url(self, business_card_url, **kwargs):
"only available for API version V2_1_PREVIEW and up"
)
raise e

@distributed_trace
def begin_recognize_id_documents(self, id_document, **kwargs):
# type: (Union[bytes, IO[bytes]], Any) -> LROPoller[List[RecognizedForm]]
"""Extract field text and semantic values from a given ID document.
The input document must be of one of the supported content types - 'application/pdf',
'image/jpeg', 'image/png', 'image/tiff' or 'image/bmp'.
"""Extract field text and semantic values from a given ID document.
The input document must be of one of the supported content types - 'application/pdf',
'image/jpeg', 'image/png', 'image/tiff' or 'image/bmp'.
Alternatively, use 'application/json' type to specify the location (Uri) of the
document to be analyzed.
Expand Down Expand Up @@ -370,7 +370,7 @@ def begin_recognize_id_documents(self, id_document, **kwargs):
.. versionadded:: v2.1-preview
The *begin_recognize_id_documents* client method
.. admonition:: Example:
.. literalinclude:: ../samples/sample_recognize_id_documents.py
Expand Down Expand Up @@ -406,11 +406,10 @@ def begin_recognize_id_documents(self, id_document, **kwargs):
)
raise e


@distributed_trace
def begin_recognize_id_documents_from_url(self, id_document_url, **kwargs):
# type: (str, Any) -> LROPoller[List[RecognizedForm]]
"""Extract field text and semantic values from a given ID document.
"""Extract field text and semantic values from a given ID document.
The input document must be the location (URL) of the ID document to be analyzed.
See fields found on an ID document here:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,14 @@ async def begin_recognize_business_cards_from_url(
"API version V2_1_PREVIEW and up"
)
raise e

@distributed_trace_async
async def begin_recognize_id_documents(
self, id_document, **kwargs: Any
) -> AsyncLROPoller[List[RecognizedForm]]:
"""Extract field text and semantic values from a given ID document.
The input document must be of one of the supported content types - 'application/pdf',
'image/jpeg', 'image/png', 'image/tiff' or 'image/bmp'.
"""Extract field text and semantic values from a given ID document.
The input document must be of one of the supported content types - 'application/pdf',
'image/jpeg', 'image/png', 'image/tiff' or 'image/bmp'.
Alternatively, use 'application/json' type to specify the location (Uri) of the
document to be analyzed.
Expand Down Expand Up @@ -418,7 +418,7 @@ async def begin_recognize_id_documents(
async def begin_recognize_id_documents_from_url(
self, id_document_url: str, **kwargs: Any
) -> AsyncLROPoller[List[RecognizedForm]]:
"""Extract field text and semantic values from a given ID document.
"""Extract field text and semantic values from a given ID document.
The input document must be the location (URL) of the ID document to be analyzed.
See fields found on an ID document here:
Expand Down

0 comments on commit 0872f9c

Please sign in to comment.