MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / __init__

Method __init__

cmd2/rich_utils.py:279–290  ·  view source on GitHub ↗

TextGroup initializer. :param title: the group's title :param text: the group's text (string or object that may be rendered by Rich)

(
        self,
        title: str,
        text: RenderableType,
    )

Source from the content-addressed store, hash-verified

277 """
278
279 def __init__(
280 self,
281 title: str,
282 text: RenderableType,
283 ) -> None:
284 """TextGroup initializer.
285
286 :param title: the group's title
287 :param text: the group's text (string or object that may be rendered by Rich)
288 """
289 self.title = title
290 self.text = text
291
292 def __cmd2_argparse_help__(self, formatter: Cmd2HelpFormatter) -> Group:
293 """Provide a representation of this object for a Cmd2HelpFormatter.

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected