def _stringify(self, transform: StringifyTransform) -> str:
    res = []
    for t in self.templates:
        res.append(transform(t))
    return ''.join(res)
def _stringify(self, transform: StringifyTransform) -> str:
    res = []
    for t in self.templates:
        res.append(transform(t))
    return .join(res)