alecthomas / alecthomas/voluptuous
More specific error message for Any()
Abierto
- Lenguaje dominante
- Python
- Estrellas
- 1.9k
- Forks
- 237
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.