Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes

This commit is contained in:
Quentin Gliech 2024-07-09 12:12:13 +02:00
commit 1ced5f1073
No known key found for this signature in database
GPG key ID: 22D62B84552719FC
2 changed files with 3 additions and 1 deletions

1
changelog.d/17411.misc Normal file
View file

@ -0,0 +1 @@
Fix linting errors from new `ruff` version.

View file

@ -322,6 +322,7 @@ class PerDestinationQueue:
) )
async def _transaction_transmission_loop(self) -> None: async def _transaction_transmission_loop(self) -> None:
pending_pdus: List[EventBase] = []
try: try:
self.transmission_loop_running = True self.transmission_loop_running = True
@ -341,7 +342,7 @@ class PerDestinationQueue:
self._new_data_to_send = False self._new_data_to_send = False
async with _TransactionQueueManager(self) as ( async with _TransactionQueueManager(self) as (
pending_pdus, pending_pdus, # noqa: F811
pending_edus, pending_edus,
): ):
if not pending_pdus and not pending_edus: if not pending_pdus and not pending_edus: