mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 15:34:48 -04: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
|
@ -31,13 +31,13 @@ class PusherFactory:
|
|||
self.hs = hs
|
||||
self.config = hs.config
|
||||
|
||||
self.pusher_types = {
|
||||
self.pusher_types: Dict[str, Callable[[HomeServer, PusherConfig], Pusher]] = {
|
||||
"http": HttpPusher
|
||||
} # type: Dict[str, Callable[[HomeServer, PusherConfig], Pusher]]
|
||||
}
|
||||
|
||||
logger.info("email enable notifs: %r", hs.config.email_enable_notifs)
|
||||
if hs.config.email_enable_notifs:
|
||||
self.mailers = {} # type: Dict[str, Mailer]
|
||||
self.mailers: Dict[str, Mailer] = {}
|
||||
|
||||
self._notif_template_html = hs.config.email_notif_template_html
|
||||
self._notif_template_text = hs.config.email_notif_template_text
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue