class_docstr: Wraps a file (e.g. sys.stdout) and redirects writes to a console.
class_docstr_tok: ["Wraps","a","file","(","e.g",".","sys.stdout",")","and","redirects","writes","to","a","console","."]
code: def flush(self) -> None:
      output = "".join(self.__buffer)
      if output:
          self.__console.print(output)
      del self.__buffer[:]
  
file_path: rich/rich/file_proxy.py
imports: import io
  from typing import IO, TYPE_CHECKING, Any, List
  from .ansi import AnsiDecoder
  from .text import Text
label_desc: Use image node_id 5 for calling the FileProxy obj's underlying member method code with example usage: obj.flush() without return types