From 7c5549a7e6b52acba4f6e0e4f471a72a919d9493 Mon Sep 17 00:00:00 2001 From: Hedy Li Date: Thu, 23 Jul 2020 08:50:33 +0800 Subject: [PATCH] Fix spelling in Prompt.ask --- rich/prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rich/prompt.py b/rich/prompt.py index e2ccb6014..0c82e193d 100644 --- a/rich/prompt.py +++ b/rich/prompt.py @@ -130,7 +130,7 @@ def ask( """Shortcut to construct and run a prompt loop and return the result. Example: - >>> filename = Promot.ask("Enter a filename") + >>> filename = Prompt.ask("Enter a filename") Args: prompt (TextType, optional): Prompt text. Defaults to "". @@ -139,7 +139,7 @@ def ask( choices (List[str], optional): A list of valid choices. Defaults to None. show_default (bool, optional): Show default in prompt. Defaults to True. show_choices (bool, optional): Show choices in prompt. Defaults to True. - stream (TextIO, optional): Optional text file open for readding to get input. Defaults to None. + stream (TextIO, optional): Optional text file open for reading to get input. Defaults to None. """ _prompt = cls( prompt,