Allow non-string types in variable templates and add magic omit value
This commit is contained in:
parent
299cfdff46
commit
a3baf06ca0
3 changed files with 25 additions and 12 deletions
|
@ -16,13 +16,12 @@
|
|||
from typing import Optional, Match, Dict, List, Set, Union, Pattern, Any
|
||||
|
||||
from attr import dataclass
|
||||
from jinja2 import Template as JinjaTemplate
|
||||
|
||||
from mautrix.types import RoomID, EventType
|
||||
|
||||
from maubot import MessageEvent
|
||||
|
||||
from .template import Template
|
||||
from .template import Template, OmitValue
|
||||
from .simplepattern import SimplePattern
|
||||
|
||||
RPattern = Union[Pattern, SimplePattern]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue