We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 075d153 commit f1803b3Copy full SHA for f1803b3
cmd2/cmd2.py
@@ -3291,10 +3291,10 @@ def read_input(
3291
completer_to_use = Cmd2Completer(self, custom_settings=custom_settings)
3292
3293
# Use dynamic prompt if the prompt matches self.prompt
3294
- def get_prompt() -> Any:
+ def get_prompt() -> ANSI | str:
3295
return ANSI(self.prompt)
3296
3297
- prompt_to_use: Any = ANSI(prompt)
+ prompt_to_use: Callable[[], ANSI | str] | ANSI | str = ANSI(prompt)
3298
if prompt == self.prompt:
3299
prompt_to_use = get_prompt
3300
0 commit comments