Bug with template OneOf()
- Dominant language
- Python
- Stars
- 424
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
Dear **Adrian**,
first of all I would like to say _Thank you_ for this awesome package.
It is really great.
Maybe I was not enough thorough but `'import_write': confuse.OneOf([bool, 'ask', 'skip']),` allows me to use such a values like `import_write: asdfasdfasdf` in `config_default.yaml`.
The example is the `example` of package so you can reproduce it by yourself.
What do I do wrongly?
Thanks for your help in advance.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report using the package example and the `config_default.yaml` entry `import_write: confuse.OneOf([bool, 'ask', 'skip'])`. Start by tracing how `OneOf()` validates that setting, then verify that `import_write: asdfasdfasdf` is rejected while the listed alternatives remain accepted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100