Skip to content

Commit e559763

Browse files
Abel Milashclaude
andcommitted
Apply black formatting to async source files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6701320 commit e559763

7 files changed

Lines changed: 10 additions & 13 deletions

File tree

src/PowerPlatform/Dataverse/aio/async_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ def __init__(
106106
) -> None:
107107
if config is not None and context is not None:
108108
raise ValueError(
109-
"Cannot specify both 'config' and 'context'. "
110-
"Pass operation_context via DataverseConfig instead."
109+
"Cannot specify both 'config' and 'context'. " "Pass operation_context via DataverseConfig instead."
111110
)
112111
self.auth = _AsyncAuthManager(credential)
113112
self._base_url = (base_url or "").rstrip("/")

src/PowerPlatform/Dataverse/aio/core/_async_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class _AsyncResponse:
3737

3838
def __init__(self, status: int, headers: Dict[str, str], body: bytes) -> None:
3939
self.status = status
40-
self.status_code = status # alias used by batch response parser
40+
self.status_code = status
4141
self.headers = headers
4242
self._body = body
4343

src/PowerPlatform/Dataverse/aio/data/_async_odata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ async def _get(
551551
:rtype: ``dict[str, Any]``
552552
"""
553553
r = await self._execute_raw(
554-
await self._build_get(table_schema_name, key, select=select, expand=expand, include_annotations=include_annotations)
554+
await self._build_get(
555+
table_schema_name, key, select=select, expand=expand, include_annotations=include_annotations
556+
)
555557
)
556558
return r.json()
557559

src/PowerPlatform/Dataverse/aio/data/_async_relationships.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,7 @@ async def _list_table_relationships(
245245
self._request("get", many_to_many_url, headers=headers, params=many_to_many_params),
246246
)
247247

248-
return (
249-
r1.json().get("value", [])
250-
+ r2.json().get("value", [])
251-
+ r3.json().get("value", [])
252-
)
248+
return r1.json().get("value", []) + r2.json().get("value", []) + r3.json().get("value", [])
253249

254250
def _extract_id_from_header(self, header_value: Optional[str]) -> Optional[str]:
255251
"""

src/PowerPlatform/Dataverse/aio/models/async_fetchxml_query.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ async def execute_pages(self) -> AsyncIterator[QueryResult]:
137137
continue
138138
except (_ET.ParseError, ValueError) as exc:
139139
warnings.warn(
140-
f"FetchXML paging cookie could not be parsed ({exc}); "
141-
"falling back to simple paging.",
140+
f"FetchXML paging cookie could not be parsed ({exc}); " "falling back to simple paging.",
142141
UserWarning,
143142
stacklevel=2,
144143
)

src/PowerPlatform/Dataverse/aio/models/async_query_builder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from ...models.query_builder import _QueryBuilderBase
1111
from ...models.record import QueryResult, Record
1212

13-
1413
__all__ = ["AsyncQueryBuilder"]
1514

1615

src/PowerPlatform/Dataverse/aio/operations/async_records.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ async def retrieve(
271271
"""
272272
async with self._client._scoped_odata() as od:
273273
try:
274-
raw = await od._get(table, record_id, select=select, expand=expand, include_annotations=include_annotations)
274+
raw = await od._get(
275+
table, record_id, select=select, expand=expand, include_annotations=include_annotations
276+
)
275277
except HttpError as exc:
276278
if exc.status_code == 404:
277279
return None

0 commit comments

Comments
 (0)