simple_template

class mautrix.util.simple_template.SimpleTemplate

Bases: Generic[mautrix.util.simple_template.T]

__init__(template, keyword, prefix='', suffix='', type=<class 'str'>)
Parameters
  • template (str) –

  • keyword (str) –

  • prefix (str) –

  • suffix (str) –

  • type (type[~T]) –

Return type

None

format(arg)
Parameters

arg (mautrix.util.simple_template.T) –

Return type

str

format_full(arg)
Parameters

arg (mautrix.util.simple_template.T) –

Return type

str

parse(val)
Parameters

val (str) –

Return type

Optional[mautrix.util.simple_template.T]