Skip to content

Commit d061b58

Browse files
run black (Azure#26080)
1 parent 60ae7cf commit d061b58

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_document_analysis_client.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,21 +172,22 @@ def begin_analyze_document_from_url(
172172
# regular analysis requests
173173
if continuation_token is not None:
174174
return self._client.begin_analyze_document( # type: ignore
175-
model_id=model_id,
176-
analyze_request={"urlSource": document_url}, # type: ignore
177-
string_index_type="unicodeCodePoint",
178-
continuation_token=continuation_token,
179-
cls=cls,
180-
**kwargs
181-
)
175+
model_id=model_id,
176+
analyze_request={"urlSource": document_url}, # type: ignore
177+
string_index_type="unicodeCodePoint",
178+
continuation_token=continuation_token,
179+
cls=cls,
180+
**kwargs
181+
)
182182

183183
if not model_id:
184184
raise ValueError("model_id cannot be None or empty.")
185185

186186
if not isinstance(document_url, str):
187187
raise ValueError(
188188
"'document_url' needs to be of type 'str'. "
189-
"Please see `begin_analyze_document()` to pass a byte stream.")
189+
"Please see `begin_analyze_document()` to pass a byte stream."
190+
)
190191

191192
return self._client.begin_analyze_document( # type: ignore
192193
model_id=model_id,

sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_document_analysis_client_async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ async def begin_analyze_document_from_url(
188188
if not isinstance(document_url, str):
189189
raise ValueError(
190190
"'document_url' needs to be of type 'str'. "
191-
"Please see `begin_analyze_document()` to pass a byte stream.")
191+
"Please see `begin_analyze_document()` to pass a byte stream."
192+
)
192193

193194
return await self._client.begin_analyze_document( # type: ignore
194195
model_id=model_id,

0 commit comments

Comments
 (0)