Skip to content

Commit

Permalink
Fix spelling in Prompt.ask
Browse files Browse the repository at this point in the history
  • Loading branch information
hedyhli authored Jul 23, 2020
1 parent 9a4fbf8 commit 7c5549a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rich/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "".
Expand All @@ -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,
Expand Down

0 comments on commit 7c5549a

Please sign in to comment.