You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many people want to match/validate the prompt input in other ways than predefined. While it's possible to create a subclass, it would be a lot easier to just pass in a lambda function as optional parameter that replaces the default check_choice.
What problem does it solve for you?
Primarily a documented way to change the validation. It's way easier because you don't need no subclass
In my case it solves case insensitive matching and fuzzy matching.
The text was updated successfully, but these errors were encountered:
Have you checked the issues for a similar suggestions?
#2938 #1845 #1886
How would you improve Rich?
Many people want to match/validate the prompt input in other ways than predefined. While it's possible to create a subclass, it would be a lot easier to just pass in a lambda function as optional parameter that replaces the default check_choice.
What problem does it solve for you?
Primarily a documented way to change the validation. It's way easier because you don't need no subclass
In my case it solves case insensitive matching and fuzzy matching.
The text was updated successfully, but these errors were encountered: