Maybe I went a little overboard by adding the regex validations.
Basically made it so both python_full_version or python_version can be initialized with the Requires() object.
Since the main thing "oneof" checks is the validation schemas itself, and the main thing we are checking is the name of the key, i.e. python_full_version or python_version i didn't see how to plug in "oneof".
Per this bug: https://github.com/pypa/pipenv/issues/5395
Maybe I went a little overboard by adding the regex validations.
Basically made it so both
python_full_version
orpython_version
can be initialized with theRequires()
object.Since the main thing "oneof" checks is the validation schemas itself, and the main thing we are checking is the name of the key, i.e.
python_full_version
orpython_version
i didn't see how to plug in "oneof".