Pydantic models are more robust and properties can be accessed by dots.
By executing "hatch run test:test", you can check whether the test passes in all Python 3.9 to 3.12 environments.