Updated pydantic to 2.12, which supports Python 3.14