From c360f652d8f0875f4145a8cf4397af50d67a7ec6 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Mon, 28 Mar 2022 14:17:39 +0100 Subject: [PATCH] Lint --- docs/sample_config.yaml | 6 ++++++ synapse/storage/databases/main/stream.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml index a21b48ab2e63..eee3bfe8f961 100644 --- a/docs/sample_config.yaml +++ b/docs/sample_config.yaml @@ -539,6 +539,12 @@ templates: # #custom_template_directory: /path/to/custom/templates/ +# List of rooms to exclude from sync responses. +# No room is excluded by default. +# +#exclude_rooms_from_sync: +# - !foo:example.com + # Message retention policy at the server level. # diff --git a/synapse/storage/databases/main/stream.py b/synapse/storage/databases/main/stream.py index 007d3a3a0952..5508f224aab5 100644 --- a/synapse/storage/databases/main/stream.py +++ b/synapse/storage/databases/main/stream.py @@ -36,7 +36,7 @@ """ import logging -from typing import TYPE_CHECKING, Collection, Dict, List, Optional, Set, Tuple +from typing import TYPE_CHECKING, Any, Collection, Dict, List, Optional, Set, Tuple import attr from frozendict import frozendict @@ -614,7 +614,7 @@ def f(txn: LoggingTransaction) -> List[_EventDictReturn]: min_from_id = from_key.stream max_to_id = to_key.get_max_stream_pos() - args = [user_id, min_from_id, max_to_id] + args: List[Any] = [user_id, min_from_id, max_to_id] ignore_room_clause = "" if ignored_rooms is not None: