You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lafrech: That would be also a way to go. However, I wanted to keep the same data types for the field as in the data class.
Originally, I discovered the bug in a @dataclass, where I declared the fields type-correctly and then defined a Schema separately, because I had some special fields in the @dataclass that could not be (de)serialized normally. One of these fields was List[CustomDataType] (where CustomDataType is the type which had to be (de)serialized manually).
Let's have the following Schema:
Let's have the following serialization code:
ExampleSchema().dump(obj)
throwsAttributeError: 'List' object has no attribute 'serialize_me'
error.The full stack trace is:
The bug exists in marshmallow 3.16.0.
The text was updated successfully, but these errors were encountered: