MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / __init__

Method __init__

cmd2/rich_utils.py:612–624  ·  view source on GitHub ↗

Cmd2ExceptionConsole initializer. :param file: optional file object where the console should write to. Defaults to sys.stdout.

(self, *, file: IO[str] | None = None)

Source from the content-addressed store, hash-verified

610 """
611
612 def __init__(self, *, file: IO[str] | None = None) -> None:
613 """Cmd2ExceptionConsole initializer.
614
615 :param file: optional file object where the console should write to.
616 Defaults to sys.stdout.
617 """
618 super().__init__(
619 file=file,
620 soft_wrap=False,
621 markup=False,
622 emoji=False,
623 highlight=False,
624 )
625
626
627class Cmd2SimpleTable(Table):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected