freezegun is a utility library commonly used in testing to control the time. In doing so it causes the datetime library to produce fake types.
Although these types correctly identify themselves as instances of their relevant type, orjson does not identify them as such leading to errors.
Although it would be possible to use the default argument, this may not always be feasible for the calling library. It would be great if orjson could natively support these.
freezegun is a utility library commonly used in testing to control the time. In doing so it causes the
datetime
library to produce fake types.Although these types correctly identify themselves as instances of their relevant type, orjson does not identify them as such leading to errors.
Although it would be possible to use the
default
argument, this may not always be feasible for the calling library. It would be great if orjson could natively support these.