Skip to content

Commit dbea39f

Browse files
suyask-msftclaude
andcommitted
Apply black formatting
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 28e69c0 commit dbea39f

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/PowerPlatform/Dataverse/data/_odata.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ def _lowercase_keys(record: Dict[str, Any]) -> Dict[str, Any]:
103103
"""
104104
if not isinstance(record, dict):
105105
return record
106-
return {
107-
k.lower() if isinstance(k, str) and "@odata." not in k else k: v
108-
for k, v in record.items()
109-
}
106+
return {k.lower() if isinstance(k, str) and "@odata." not in k else k: v for k, v in record.items()}
110107

111108
@staticmethod
112109
def _lowercase_list(items: Optional[List[str]]) -> Optional[List[str]]:

tests/unit/data/test_odata_internal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ def test_record_keys_lowercased(self):
338338
def test_odata_bind_keys_preserve_case(self):
339339
"""@odata.bind keys must preserve PascalCase for navigation property."""
340340
self.od._upsert(
341-
"accounts", "account", {"accountnumber": "ACC-001"},
341+
"accounts",
342+
"account",
343+
{"accountnumber": "ACC-001"},
342344
{
343345
"Name": "Contoso",
344346
"new_CustomerId@odata.bind": "/contacts(00000000-0000-0000-0000-000000000001)",

0 commit comments

Comments
 (0)