asweigart / asweigart/pyinputplus

inputCustom Additional Argument

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
114
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Good morning,

I would like to use pyip.inputCustom to check an input as normal, but I would also like to pass in an additional string to be used in the Exception if the input doesn't pass. I have not been able to figure out how to pass that additional argument into the function called as an argument in inputCustom.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the pyip.inputCustom entry point and inspect how it invokes the user-supplied validation function and constructs exceptions. Determine how an additional string should reach that function and appear in the failure exception; done means the documented call works and the existing inputCustom behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.