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
Actually, it looks like this fails with 3.14 also. In 3.14 with the order Union[List[str], List[ExternalPartition]] the List[ExternalPartition] doesn't always serialize properly (it stays an object). In other cases it's okay (not sure what the difference is). In 3.15 that Union order causes the output to be a stringified object instead of a dictionary, so when I changed it to Union[List[ExternalPartition], List[str]] it converted to a dict okay, but we got the msgpack failure.
This is certainly a bug related to no_copy_collections parameter. The condition for no copying should be improved because it's now very naive at the moment:
Current workaround is to use your own dialect with the empty no_copy_collections tuple (or just make it so right in MessagePackDialect before the first import of your dataclasses 👀):
Description
A to_msgpack() call that worked in 3.14 no longer works for a particular class in 3.15.
What I Did
test script:
output
msgpack is 1.1.0
The text was updated successfully, but these errors were encountered: