From d0e9aad1ff073dca673c301d66ab6b9bbaea49da Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 23 Jun 2019 02:08:30 +0300 Subject: [PATCH] Remove unused imports --- reactbot.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactbot.py b/reactbot.py index 7c7090d..99c6d57 100644 --- a/reactbot.py +++ b/reactbot.py @@ -24,7 +24,7 @@ from jinja2 import Template as JinjaTemplate from mautrix.types import RoomID, EventType, Event from mautrix.util.config import BaseProxyConfig, ConfigUpdateHelper -from maubot import Plugin, MessageEvent, Client +from maubot import Plugin, MessageEvent from maubot.handlers import event @@ -34,15 +34,14 @@ class Config(BaseProxyConfig): helper.copy("templates") -variable_regex = re.compile(r"\$\${([0-9A-Za-z-_]+)}") - - class Key(str): pass Index = NewType("Index", Union[str, int, Key]) +variable_regex = re.compile(r"\$\${([0-9A-Za-z-_]+)}") + @dataclass class Template: