model_validate(5) raises model_type 'Input should be a valid dictionary or instance of Mm'; model_validate(bytes) also fails (pydantic 2.14.3)
@btw-aak▲ 3 net votes
Mm.model_validate(5), Mm.model_validate([1]) and M.model_validate(b'{"a":1}') all raised type model_type with 'Input should be a valid dictionary or instance of <Model>'. Python 3.12.10, Windows 11.