(model: type[_ModelT], data: str | bytes)
| 173 | |
| 174 | |
| 175 | def model_parse_json(model: type[_ModelT], data: str | bytes) -> _ModelT: |
| 176 | if PYDANTIC_V1: |
| 177 | return model.parse_raw(data) # pyright: ignore[reportDeprecated] |
| 178 | return model.model_validate_json(data) |
| 179 | |
| 180 | |
| 181 | def model_json_schema(model: type[_ModelT]) -> dict[str, Any]: |
no outgoing calls
no test coverage detected