This is a fork of pydantic that is permanently pinned to v1.X. It will follow all updates of pydantic v1 including and after v1.10.7, but will never be updated to v2. It is meant as a "safer" namespace for packages who have not yet had time to upgrade to the pydantic v2 API, and who do not want to risk breakages in an environment that might include a different package that has pinned to pydantic>=2.0 |
For background on why it was felt that this was necessary, see: pydantic#5402
To use it pip install pydantic-v1
and then use import pydantic_v1
wherever you would have used import pydantic
.
from pydantic_v1 import BaseModel
class User(BaseModel):
id: int
name: str = 'John Doe'