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

Commit 8395995

Browse files
author
David Robertson
committed
Revert "Fix the context complaint differently"
This reverts commit 134d3da.
1 parent 134d3da commit 8395995

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

synapse/storage/databases/main/devices.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,8 +1865,6 @@ async def add_device_list_outbound_pokes(
18651865
18661866
Marks the associated row in `device_lists_changes_in_room` as handled.
18671867
"""
1868-
if context is None:
1869-
context = {}
18701868

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

18861882
self.db_pool.simple_update_txn(

0 commit comments

Comments
 (0)