Skip to content

Commit

Permalink
Fix linting errors (format)
Browse files Browse the repository at this point in the history
  • Loading branch information
ods committed Jan 29, 2024
1 parent ccf8524 commit 3f2e2e2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions aiokafka/admin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ async def delete_records(
for leader, delete_request in requests.items():
request = req_cls(
self._convert_records_to_delete(delete_request),
timeout_ms or self._request_timeout_ms
timeout_ms or self._request_timeout_ms,
)
response = await self._client.send(leader, request)
for topic, partitions in response.topics:
Expand All @@ -662,9 +662,6 @@ def _convert_records_to_delete(
records_to_delete: Dict[str, List[Tuple[int, RecordsToDelete]]],
):
return [
(
topic,
[(partition, rec.before_offset) for partition, rec in records]
)
(topic, [(partition, rec.before_offset) for partition, rec in records])
for topic, records in records_to_delete.items()
]

0 comments on commit 3f2e2e2

Please sign in to comment.