def flatten(t: pages.ChildTable) -> str: io = BytesIO() writer.flattenToFile(io, t) return io.getvalue().decode()
def flatten(t): io = NativeStringIO() writer.flattenToFile(io, t) return io.getvalue()
def flatten(t): io = BytesIO() writer.flattenToFile(io, t) return io.getvalue().decode()
def flatten(t): io = cStringIO.StringIO() writer.flattenToFile(io, t) return io.getvalue()