From 55301671acd71f1e4aa2d1309f47cbd88ad9b9bc Mon Sep 17 00:00:00 2001 From: Ankit Gupta Date: Sat, 5 Nov 2022 23:11:27 +0530 Subject: [PATCH] fix usage of prompt in the examples --- examples/checkbox.py | 2 +- examples/confirm.py | 2 +- examples/editor.py | 2 +- examples/expand.py | 2 +- examples/input.py | 2 +- examples/list.py | 2 +- examples/password.py | 2 +- examples/pizza.py | 2 +- examples/rawlist.py | 2 +- examples/when.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/checkbox.py b/examples/checkbox.py index 8e76128..ff462ed 100644 --- a/examples/checkbox.py +++ b/examples/checkbox.py @@ -65,5 +65,5 @@ } ] -answers = prompt.prompt(questions, style=custom_style_2) +answers = prompt(questions, style=custom_style_2) pprint(answers) diff --git a/examples/confirm.py b/examples/confirm.py index 5fb08c8..c676fdf 100644 --- a/examples/confirm.py +++ b/examples/confirm.py @@ -25,6 +25,6 @@ }, ] -answers = prompt.prompt(questions, style=custom_style_1) +answers = prompt(questions, style=custom_style_1) pprint(answers) diff --git a/examples/editor.py b/examples/editor.py index 3512a08..9b36bcd 100644 --- a/examples/editor.py +++ b/examples/editor.py @@ -22,5 +22,5 @@ } ] -answers = prompt.prompt(questions, style=custom_style_2) +answers = prompt(questions, style=custom_style_2) pprint(answers) diff --git a/examples/expand.py b/examples/expand.py index 4ae7158..a646055 100644 --- a/examples/expand.py +++ b/examples/expand.py @@ -41,5 +41,5 @@ } ] -answers = prompt.prompt(questions, style=custom_style_2) +answers = prompt(questions, style=custom_style_2) print_json(answers) diff --git a/examples/input.py b/examples/input.py index 9fa0feb..3c06c6d 100644 --- a/examples/input.py +++ b/examples/input.py @@ -44,5 +44,5 @@ def validate(self, document): } ] -answers = prompt.prompt(questions, style=custom_style_2) +answers = prompt(questions, style=custom_style_2) pprint(answers) diff --git a/examples/list.py b/examples/list.py index 696c4c1..08e63e4 100644 --- a/examples/list.py +++ b/examples/list.py @@ -51,5 +51,5 @@ def get_delivery_options(answers): }, ] -answers = prompt.prompt(questions, style=custom_style_2) +answers = prompt(questions, style=custom_style_2) pprint(answers) diff --git a/examples/password.py b/examples/password.py index b7319e6..7042ddc 100644 --- a/examples/password.py +++ b/examples/password.py @@ -17,5 +17,5 @@ } ] -answers = prompt.prompt(questions, style=custom_style_2) +answers = prompt(questions, style=custom_style_2) print_json(answers) 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) diff --git a/examples/rawlist.py b/examples/rawlist.py index 5509251..bba91a3 100644 --- a/examples/rawlist.py +++ b/examples/rawlist.py @@ -32,5 +32,5 @@ } ] -answers = prompt.prompt(questions, style=custom_style_2) +answers = prompt(questions, style=custom_style_2) print_json(answers) diff --git a/examples/when.py b/examples/when.py index 4c850a3..a06c18d 100644 --- a/examples/when.py +++ b/examples/when.py @@ -41,6 +41,6 @@ def dislikes_bacon(answers): } ] -answers = prompt.prompt(questions, style=custom_style_2) +answers = prompt(questions, style=custom_style_2) print_json(answers)