File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,28 @@ class ListQuestion(TypedDict, total=False):
1414 message : str
1515 choices : list [Choice ]
1616 use_shortcuts : bool
17+ filter : Callable [[str ], str ]
18+ bottom_toolbar : Callable [[], str ]
19+ validate : Callable [[str ], bool | str ]
1720
1821
1922class InputQuestion (TypedDict , total = False ):
2023 type : Literal ["input" ]
2124 name : str
2225 message : str
2326 filter : Callable [[str ], str ]
27+ bottom_toolbar : Callable [[], str ]
28+ validate : Callable [[str ], bool | str ]
2429
2530
26- class ConfirmQuestion (TypedDict ):
31+ class ConfirmQuestion (TypedDict , total = False ):
2732 type : Literal ["confirm" ]
2833 name : str
2934 message : str
3035 default : bool
36+ filter : Callable [[str ], str ]
37+ bottom_toolbar : Callable [[], str ]
38+ validate : Callable [[str ], bool | str ]
3139
3240
3341CzQuestion = ListQuestion | InputQuestion | ConfirmQuestion
You can’t perform that action at this time.
0 commit comments