msgspec icon indicating copy to clipboard operation
msgspec copied to clipboard

Simply override encode/decode behavior around a builtin

Open clintval opened this issue 1 year ago • 0 comments
trafficstars

Description

I'd like to encode None as the string "." and decode it back to None.

All other behavior of this library is extremely desirable and functional, but I cannot figure how to implement custom enc/dec callbacks for already defined builtin-types. Any advice or intentions to support this feature?

clintval avatar Nov 04 '24 15:11 clintval