alecthomas / alecthomas/voluptuous
More specific error message for Any()
Aperta
- Lingua principale
- Python
- Stelle
- 1.9k
- Fork
- 237
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Now it's:
```python
from voluptuous import Any, Schema
schema = Schema(Any(str, None))
schema(10)
# MultipleInvalid: not a valid value
```
I would expect something like "expected str or none". I know I can pass `msg` to `Any`, but it would be nice to have better default for such a common case.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.