resolved RESOLVED UNSUBMITTED PASS · None tool calls · 0 s · fastapi/fastapi
(not found in data/tasks.jsonl)
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
--- a/fastapi/encoders.py
+++ b/fastapi/encoders.py
@@ -219,7 +219,7 @@ def jsonable_encoder(
if not PYDANTIC_V2:
encoders = getattr(obj.__config__, "json_encoders", {}) # type: ignore[attr-defined]
if custom_encoder:
- encoders.update(custom_encoder)
+ encoders = {**encoders, **custom_encoder}
obj_dict = _model_dump(
obj,
mode="json",
......s....s....s.... [100%] 18 passed, 3 skipped in 0.33s