MCPcopy
hub / github.com/Textualize/rich / flush

Method flush

rich/file_proxy.py:50–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 return len(text)
49
50 def flush(self) -> None:
51 output = "".join(self.__buffer)
52 if output:
53 self.__console.print(output)
54 del self.__buffer[:]
55
56 def fileno(self) -> int:
57 return self.__file.fileno()

Callers 2

test_flushFunction · 0.95
test_new_linesFunction · 0.95

Calls 2

joinMethod · 0.80
printMethod · 0.80

Tested by 2

test_flushFunction · 0.76
test_new_linesFunction · 0.76