Skip to content

Commit 526885b

Browse files
author
Harinath
committed
Removed unnecessary comments ++ linting fixed.
1 parent 8fb1faa commit 526885b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pydanticrud/backends/dynamodb.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,12 @@ def batch_save(self, items: list) -> dict:
429429
for chunk in chunk_list(items, 25):
430430
serialized_items = [self.serializer.serialize_record(item.dict(by_alias=True)) for item in chunk]
431431
for serialized_item in serialized_items:
432-
request_items[self.table_name].append({"PutRequest": {"Item": serialized_item}
433-
})
432+
request_items[self.table_name].append({"PutRequest": {"Item": serialized_item}})
434433
try:
435434
response = self.dynamodb.batch_write_item(RequestItems=request_items)
436435
except ClientError as e:
437436
raise e
438437
except (ValueError, TypeError, KeyError) as ex:
439438
raise ex
440439
unprocessed_items = response.get("UnprocessedItems", {})
441-
# Return any unprocessed items
442440
return unprocessed_items

0 commit comments

Comments
 (0)