mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-23 10:22:53 -05:00
Use inline type hints in various other places (in synapse/) (#10380)
This commit is contained in:
parent
c7603af1d0
commit
bf72d10dbf
79 changed files with 329 additions and 336 deletions
|
|
@ -34,7 +34,7 @@ class SpamCheckerConfig(Config):
|
|||
section = "spamchecker"
|
||||
|
||||
def read_config(self, config, **kwargs):
|
||||
self.spam_checkers = [] # type: List[Tuple[Any, Dict]]
|
||||
self.spam_checkers: List[Tuple[Any, Dict]] = []
|
||||
|
||||
spam_checkers = config.get("spam_checker") or []
|
||||
if isinstance(spam_checkers, dict):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue