(self, obj)
| 308 | class PydanticJSONEncoder(json.JSONEncoder): |
| 309 | |
| 310 | def default(self, obj): |
| 311 | if isinstance(obj, BaseModel): |
| 312 | return obj.model_dump() |
| 313 | return super().default(obj) |
| 314 | |
| 315 | |
| 316 | def json_dumps_pretty(obj: dict, ensure_ascii=False, indent=2, **kwargs) -> str: |
nothing calls this directly
no test coverage detected