IO Class Documentation

class mypyopt.input_output.InputOutputManager

Bases: object

This class defines some input/output-related conveniences

static write_line(console: bool, full_output: Optional[TextIO], string: str)

A static method in the class used for convenience when printing out information.

Parameters
  • console – A boolean for whether to report the string to standard output

  • full_output – A file stream; if not None, it will be written to with the string

  • string – The string to report; a newline is appended to the end if it doesn’t have one already