Path 1: 33 calls (0.94)

1def flush(self) -> None:
2        output = "".join(self.__buffer)
3        if output:
4            self.__console.print(output)
5        del self.__buffer[:]
            

Path 2: 2 calls (0.06)

1def flush(self) -> None:
2        output = "".join(self.__buffer)
3        if output:
4            self.__console.print(output)
5        del self.__buffer[:]