trafaret_forked
trafaret_forked copied to clipboard
validate arbitrary data structures in python
Fix #60 PR Except filling rule is different. Fill from enum keys. Cause by default enum lib support getting by key, not by value. ```python class MyEnum(enum.Enum): me = 'developer'...
Basic trafarets should be called directly, instead of calling `check` method. Reason: method `__call__` is an **entrypoint** to trafaret If we need to redefine method `__call__` in custom trafaret, and...
Is that intended to be so or just some legacy code or smth? IMHO, it is: 1. Misguiding 2. Introduces necessity to validate and convert the result Wouldn't it be...
Hi. What about adding syntax sugar for filling `t.Enum` variants from Python's `enum.Enum`? Right now it is doable, but not very reusbale, ```py >>> import enum >>> import trafaret as...