trafaret icon indicating copy to clipboard operation
trafaret copied to clipboard

Avoid checking default values

Open Dreamsorcerer opened this issue 5 years ago • 0 comments

When using a default value such as: t.Key("integration", default=None, trafaret=t.Regexp(r"\w+"))

This will result in an error, as it checks the default argument against the trafaret object. It seems sensible to skip any checking of the default argument for efficiency and to allow code as shown above.

Dreamsorcerer avatar Nov 04 '20 16:11 Dreamsorcerer