Bump black from 22.12.0 to 23.1.0 (#15103)

This commit is contained in:
dependabot[bot] 2023-02-22 15:29:09 -05:00 committed by GitHub
parent 4ed08ff72e
commit 9bb2eac719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
117 changed files with 108 additions and 218 deletions

View file

@ -721,8 +721,8 @@ class DeviceInboxWorkerStore(SQLBaseStore):
],
)
for (user_id, messages_by_device) in edu["messages"].items():
for (device_id, msg) in messages_by_device.items():
for user_id, messages_by_device in edu["messages"].items():
for device_id, msg in messages_by_device.items():
with start_active_span("store_outgoing_to_device_message"):
set_tag(SynapseTags.TO_DEVICE_EDU_ID, edu["sender"])
set_tag(SynapseTags.TO_DEVICE_EDU_ID, edu["message_id"])
@ -959,7 +959,6 @@ class DeviceInboxBackgroundUpdateStore(SQLBaseStore):
def _remove_dead_devices_from_device_inbox_txn(
txn: LoggingTransaction,
) -> Tuple[int, bool]:
if "max_stream_id" in progress:
max_stream_id = progress["max_stream_id"]
else: