Path 1: 5 calls (0.83)

'continue' (3) 'what is your name' (1) 'Enter a number' (1)

Console (5)

False (5)

None (5)

True (5)

True (5)

1def __init__(
2        self,
3        prompt: TextType = "",
4        *,
5        console: Optional[Console] = None,
6        password: bool = False,
7        choices: Optional[List[str]] = None,
8        show_default: bool = True,
9        show_choices: bool = True,
10    ) -> None:
11        self.console = console or get_console()
12        self.prompt = (
13            Text.from_markup(prompt, style="prompt")
14            if isinstance(prompt, str)
15            else prompt
16        )
17        self.password = password
18        if choices is not None:
19            self.choices = choices
20        self.show_default = show_default
21        self.show_choices = show_choices
            

Path 2: 1 calls (0.17)

'what is your name' (1)

Console (1)

False (1)

['foo', 'bar'] (1)

True (1)

True (1)

1def __init__(
2        self,
3        prompt: TextType = "",
4        *,
5        console: Optional[Console] = None,
6        password: bool = False,
7        choices: Optional[List[str]] = None,
8        show_default: bool = True,
9        show_choices: bool = True,
10    ) -> None:
11        self.console = console or get_console()
12        self.prompt = (
13            Text.from_markup(prompt, style="prompt")
14            if isinstance(prompt, str)
15            else prompt
16        )
17        self.password = password
18        if choices is not None:
19            self.choices = choices
20        self.show_default = show_default
21        self.show_choices = show_choices