def render(self, content: Any) -> bytes:
    if isinstance(content, memoryview):
        return content.cast('B')
    return super().render(content)
def render(self, content: Any) -> bytes:
    if isinstance(content, memoryview):
        return content.cast('B')
    return super().render(content)