Open Future-Outlier opened 2 weeks ago
In summary, this is a super edge case.
@dataclass
class DC:
grid: Dict[str, List[Optional[Union[int, str, float, bool, Status, InnerDC]]]] = field(default_factory=lambda: {
'all_types': [InnerDC()],
})
You might be interested in how mashumaro is used in bytes, so let me give you a brief concept.
python val -> msgpack bytes -> protobuf literal
protobuf literal -> msgpack bytes -> python val
We will provide python type to encoder or decoder to serialize/deserialize it now, thank you for looking this, and feel free to ping me to collaborate, I'll try to reply it in 1 day <3
mashumaro version: 3.13.1
Python version: 3.12.4
Operating System: macOS Sonoma 14.3
Description
I'm a maintainer of Flyte, and I encountered an issue while using
mashumaro.codecs.msgpack
'sMessagePackDecoder
andMessagePackEncoder
. Specifically, theMessagePackDecoder
fails to handle a certain edge case.What I Did
In both cases, encoding works, but decoding with
MessagePackDecoder
fails.