Fix minor things and type hints

This commit is contained in:
Tulir Asokan
2018-09-28 01:02:09 +03:00
parent 828047e272
commit b44d6d2d90
8 changed files with 23 additions and 21 deletions
@@ -148,7 +148,7 @@ def plain_mention_to_text() -> Tuple[List[TypeMessageEntity], Callable[[str], st
return entities, replacer
def init_mx(context: "Context"):
def init_mx(context: "Context") -> None:
global plain_mention_regex, should_bridge_plaintext_highlights
config = context.config
dn_template = config.get("bridge.displayname_template", "{displayname} (Telegram)")