Upgrading pydantic 0.30 to 0.31
Review needed0.30.1 → 0.31.1New5Changed1Fixed4Other2
Review neededUpgrade verdict
1 changed default.
In plain terms
- Nothing in this range needs changes to your code. It adds features and fixes.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
field EnumError.msg_template
- removed:
variable TYPE_BLACKLIST - changed:
method BaseModel.copy(*, include: SetStr=…, exclude: SetStr=…, update: DictStrAny=…, deep: bool=…) -> Model → method BaseModel.copy(*, include: Union[SetIntStr, DictIntStrAny]=…, exclude: Union[SetIntStr, DictIntStrAny]=…, update: DictStrAny=…, deep: bool=…) -> Model - changed:
method BaseModel.dict(*, include: SetStr=…, exclude: SetStr=…, by_alias: bool=…, skip_defaults: bool=…) -> DictStrAny → method BaseModel.dict(*, include: Union[SetIntStr, DictIntStrAny]=…, exclude: Union[SetIntStr, DictIntStrAny]=…, by_alias: bool=…, skip_defaults: bool=…) -> DictStrAny - changed:
method BaseModel.json(*, include: SetStr=…, exclude: SetStr=…, by_alias: bool=…, skip_defaults: bool=…, encoder: Optional[Callable[[Any], Any]]=…, **dumps_kwargs: Any) -> str → method BaseModel.json(*, include: Union[SetIntStr, DictIntStrAny]=…, exclude: Union[SetIntStr, DictIntStrAny]=…, by_alias: bool=…, skip_defaults: bool=…, encoder: Optional[Callable[[Any], Any]]=…, **dumps_kwargs: Any) -> str - added:
field BaseConfig.keep_untouched: Tuple[type, ...] - added:
variable DictIntStrAny - added:
variable IntStr - added:
variable SetIntStr - added:
variable UNTOUCHED_TYPES
- removed:
function clean_docstring(d: str) -> str - added:
class ValueItems - added:
constructor ValueItems(value: Any, items: Union[SetIntStr, DictIntStrAny]) -> None - added:
function is_new_type(type_: AnyType) -> bool - added:
function literal_values(type_: AnyType) -> Tuple[Any, ...] - added:
function new_type_supertype(type_: AnyType) -> AnyType - added:
method ValueItems.for_element(e: IntStr) -> Optional[Union[SetIntStr, DictIntStrAny]] - added:
method ValueItems.is_excluded(item: Any) -> bool - added:
method ValueItems.is_included(item: Any) -> bool - added:
variable test_type