A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/CITGuru/PyInquirer/issues/12 below:

default type doesn't work · Issue #12 · CITGuru/PyInquirer · GitHub

Hi all,

The README claims that 'type' key is optional for questions; it appear this statement is not true:
Running with a list of questions of this form:

questions = [
    {                                                                                              
        'type': 'input',
        'name': 'NAME',
        'message': 'Name:'
     },                                                                                           
    {
        'name': 'ASV',
        'message': 'ASV:'
     }
]

answers = prompt(questions)

leads to this interaction

? Name:  qwe
Traceback (most recent call last):
  File "./work.py", line 63, in <module>
    answers = prompt(questions)
  File "/usr/local/lib/python2.7/site-packages/PyInquirer/prompt.py", line 27, in prompt
    raise PromptParameterException('type')
PyInquirer.PromptParameterException: ('You must provide a `type` value', None)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4