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
items_types
Right now this parameter has a None default value, which means that the actual value will be an empty tuple.
None
This creates inconsistent behavior:
class Foo(Base): l = ListField() # Look ma, no `items_types`! f = Foo() f.l.append("a") # works # But look at this: f = Foo(l=["a"]) Traceback (most recent call last): ... ValidationError: Cannot decide which type to choose from "".
Inconsistency: Validation during __init__ is not the same as when using append.
__init__
append
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Right now this parameter has a
None
default value, which means that the actual value will be an empty tuple.This creates inconsistent behavior:
Inconsistency: Validation during
__init__
is not the same as when usingappend
.The text was updated successfully, but these errors were encountered: