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

Function reconfigure

rich/__init__.py:39–50  ·  view source on GitHub ↗

Reconfigures the global console by replacing it with another. Args: *args (Any): Positional arguments for the replacement :class:`~rich.console.Console`. **kwargs (Any): Keyword arguments for the replacement :class:`~rich.console.Console`.

(*args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

37
38
39def reconfigure(*args: Any, **kwargs: Any) -> None:
40 """Reconfigures the global console by replacing it with another.
41
42 Args:
43 *args (Any): Positional arguments for the replacement :class:`~rich.console.Console`.
44 **kwargs (Any): Keyword arguments for the replacement :class:`~rich.console.Console`.
45 """
46 from rich.console import Console
47
48 new_console = Console(*args, **kwargs)
49 _console = get_console()
50 _console.__dict__ = new_console.__dict__
51
52
53def print(

Callers

nothing calls this directly

Calls 2

ConsoleClass · 0.85
get_consoleFunction · 0.85

Tested by

no test coverage detected