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

Commit c360f65

Browse files
committed
Lint
1 parent fca24ec commit c360f65

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/sample_config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,12 @@ templates:
539539
#
540540
#custom_template_directory: /path/to/custom/templates/
541541

542+
# List of rooms to exclude from sync responses.
543+
# No room is excluded by default.
544+
#
545+
#exclude_rooms_from_sync:
546+
# - !foo:example.com
547+
542548

543549
# Message retention policy at the server level.
544550
#

synapse/storage/databases/main/stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"""
3737

3838
import logging
39-
from typing import TYPE_CHECKING, Collection, Dict, List, Optional, Set, Tuple
39+
from typing import TYPE_CHECKING, Any, Collection, Dict, List, Optional, Set, Tuple
4040

4141
import attr
4242
from frozendict import frozendict
@@ -614,7 +614,7 @@ def f(txn: LoggingTransaction) -> List[_EventDictReturn]:
614614
min_from_id = from_key.stream
615615
max_to_id = to_key.get_max_stream_pos()
616616

617-
args = [user_id, min_from_id, max_to_id]
617+
args: List[Any] = [user_id, min_from_id, max_to_id]
618618

619619
ignore_room_clause = ""
620620
if ignored_rooms is not None:

0 commit comments

Comments
 (0)