Method: rich.prompt.PromptBase.render_default
Calls: 3, Exceptions: 0, Paths: 1Back
Path 1: 3 calls (1.0)
'baz' (2) 'Will' (1)
Text (3)
1def render_default(self, default: DefaultType) -> Text:
2 """Turn the supplied default in to a Text instance.
3
4 Args:
5 default (DefaultType): Default value.
6
7 Returns:
8 Text: Text containing rendering of default value.
9 """
10 return Text(f"({default})", "prompt.default")