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

Commit

Permalink
Revert "Fix the context complaint differently"
Browse files Browse the repository at this point in the history
This reverts commit 134d3da.
  • Loading branch information
David Robertson committed Jun 15, 2022
1 parent 134d3da commit 8395995
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions synapse/storage/databases/main/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1865,8 +1865,6 @@ async def add_device_list_outbound_pokes(
Marks the associated row in `device_lists_changes_in_room` as handled.
"""
if context is None:
context = {}

def add_device_list_outbound_pokes_txn(
txn: LoggingTransaction, stream_ids: List[int]
Expand All @@ -1878,9 +1876,7 @@ def add_device_list_outbound_pokes_txn(
device_ids=[device_id],
hosts=hosts,
stream_ids=stream_ids,
# mypy doesn't know that `context` is never None here, see
# https://mypy.readthedocs.io/en/stable/common_issues.html#narrowing-and-inner-functions
context=context, # type: ignore[arg-type]
context=context,
)

self.db_pool.simple_update_txn(
Expand Down

0 comments on commit 8395995

Please sign in to comment.