Skip to content

Commit 4854b37

Browse files
Samson Gebreclaude
andcommitted
fix: apply black formatting to records.py
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 60f3440 commit 4854b37

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/PowerPlatform/Dataverse/operations/records.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,7 @@ def upsert(self, table: str, items: List[Union[UpsertItem, Dict[str, Any]]]) ->
518518
for i in items:
519519
if isinstance(i, UpsertItem):
520520
normalized.append(i)
521-
elif (
522-
isinstance(i, dict)
523-
and isinstance(i.get("alternate_key"), dict)
524-
and isinstance(i.get("record"), dict)
525-
):
521+
elif isinstance(i, dict) and isinstance(i.get("alternate_key"), dict) and isinstance(i.get("record"), dict):
526522
normalized.append(UpsertItem(alternate_key=i["alternate_key"], record=i["record"]))
527523
else:
528524
raise TypeError("Each item must be a UpsertItem or a dict with 'alternate_key' and 'record' keys")

0 commit comments

Comments
 (0)