class_docstr: Ask the user for input until a valid response is received. This is the base class, see one of
  the concrete classes for examples.
  
  Args:
      prompt (TextType, optional): Prompt text. Defaults to "".
      console (Console, optional): A Console instance or None to use global console. Defaults to None.
      password (bool, optional): Enable password input. Defaults to False.
      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.
class_docstr_tok: ["Ask","the","user","for","input","until","a","valid","response","is","received",".","This","is","the","base","class",",","see","one","of","the","concrete","classes","for","examples",".","Args",":","prompt","(","TextType",",","optional",")",":","Prompt","text",".","Defaults","to","``","''",".","console","(","Console",",","optional",")",":","A","Console","instance","or","None","to","use","global","console",".","Defaults","to","None",".","password","(","bool",",","optional",")",":","Enable","password","input",".","Defaults","to","False",".","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","."]
code: def ask(
      cls,
      prompt: TextType = "",
      *,
      console: Optional[Console] = None,
      password: bool = False,
      choices: Optional[List[str]] = None,
      show_default: bool = True,
      show_choices: bool = True,
      default: DefaultType,
      stream: Optional[TextIO] = None,
  ) -> Union[DefaultType, PromptType]:
      ...
  
imports: from typing import Any, Generic, List, Optional, TextIO, TypeVar, Union, overload
  from .None import get_console
  from .console import Console
  from .text import Text, TextType
label_desc: Use image node_id 2 for calling the PromptBase obj's underlying member method code with example usage: obj.ask(cls, prompt) without return types