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