msgspec
msgspec copied to clipboard
Simply override encode/decode behavior around a builtin
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?