From 56ffd3ccee24c323da9d0b8556dc31a96cc48b19 Mon Sep 17 00:00:00 2001 From: Clayton Errington Date: Wed, 9 Dec 2020 13:46:04 -0600 Subject: [PATCH] correct prompt() issues Needed to change prompt.prompt() to just prompt() current raised an error. answers = prompt.prompt(questions, style=custom_style_3) AttributeError: 'function' object has no attribute 'prompt' --- examples/pizza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pizza.py b/examples/pizza.py index 1d6a4ec..f1a487e 100644 --- a/examples/pizza.py +++ b/examples/pizza.py @@ -106,6 +106,6 @@ def validate(self, document): } ] -answers = prompt.prompt(questions, style=custom_style_3) +answers = prompt(questions, style=custom_style_3) print('Order receipt:') pprint(answers)