async def put_template(self, template: Template) -> Template: body = await self._put_json( endpoint=f'/templates/{template.id}', json=template.serialize_remote(), ) return _load_remote_template(body)
def _load_remote_template(data: dict) -> Template: return Template.load_remote(data)
def __init__(self): self.template = Template() self._formats = [] # type: List[FormatSpec]