We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Optional
Make a few changes to the Optional filter:
self.default
self.default()
is_factory
Examples:
>>> f.Optional(default=0).apply(None) 0 >>> f.Optional(default=dict).apply(None) {} >>> f.Optional(default=dict, is_factory=False).apply(None) <class 'dict'>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Make a few changes to the
Optional
filter:self.default
is callable, returnself.default()
.is_factory
that can override this behavior.Examples:
The text was updated successfully, but these errors were encountered: