Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add type annotations to get_new_messages_txn
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Nov 8, 2021
1 parent e3f3390 commit efd9634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/deviceinbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def get_new_messages(
else:
return {}, to_stream_id

def get_new_messages_txn(txn):
def get_new_messages_txn(txn: LoggingTransaction):
# Build a query to select messages from any of the given users that are between
# the given stream id bounds
sql = "SELECT stream_id, user_id, device_id, message_json FROM device_inbox"
Expand Down

0 comments on commit efd9634

Please sign in to comment.