Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_flush
Function · 0.95
test_new_lines
Function · 0.95
Calls
2
join
Method · 0.80
print
Method · 0.80
Tested by
2
test_flush
Function · 0.76
test_new_lines
Function · 0.76