Skip to content

Upgrading pydantic 0.31 to 0.32

Breaking0.31.1 → 0.32.2Breaking1New2Changed1Fixed4

BreakingUpgrade verdict

1 breaking change.

  • Code that relied on `__getattr__` or the `__values__` attribute on models must change; attribute access is now much faster.
1 item needs code or config changes
Breaking1
Removes __getattr__ and renames __values__ to __dict__ on BaseModel, with a deprecation warning on __values__ use and up to 14x faster attribute access.
BaseModel__getattr____values____dict__

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • changed: constructor ValidationError(errors: Sequence[ErrorList]) -> None → constructor ValidationError(errors: Sequence[ErrorList], model: Type[Any]) -> None
  • added: field BaseConfig.schema_extra: Dict[str, Any]
  • removed: variable ForwardRef
  • added: function evaluate_forwardref(type_, globalns, localns)