Merge pull request #169 from hedythedev/patch-1

Fix spellings in Prompt.ask
This commit is contained in:
Will McGugan 2020-07-23 10:14:36 +01:00 committed by GitHub
commit 077acd5bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ class PromptBase(Generic[PromptType]):
"""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 @@ class PromptBase(Generic[PromptType]):
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,