- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_custom_encoders (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_jsonable_encoder.py
assert jsonable_encoder(model, include={}) == {} assert jsonable_encoder(model, exclude={}) == { "foo": "foo", "bar": "bar", "bla": "bla", } def test_custom_encoders(): class safe_datetime(datetime): pass class MyDict(TypedDict): dt_field: safe_datetime instance = MyDict(dt_field=safe_datetime.now())
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 9.2K bytes - Click Count (0)