Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid checking default values #117

Open
Dreamsorcerer opened this issue Nov 4, 2020 · 0 comments
Open

Avoid checking default values #117

Dreamsorcerer opened this issue Nov 4, 2020 · 0 comments

Comments

@Dreamsorcerer
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant