pydantic-core breaking changes
Updated December 4, 2026
On this page
Latest version 2.50.5, released November 19, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
pydantic-core 2.50.3 breaking changes
- Removed
pydantic_core.MultiHostUrl.__repr__
MultiHostUrl.__repr__ was removed in pydantic_core 2.50.3 pypi.org - Removed
pydantic_core.MultiHostUrl.__str__
MultiHostUrl.__str__ was removed in pydantic_core 2.50.3 pypi.org - Removed
pydantic_core.Url.__repr__
Url.__repr__ was removed in pydantic_core 2.50.3 pypi.org - Removed
pydantic_core.Url.__str__
Url.__str__ was removed in pydantic_core 2.50.3 pypi.org - Signature changed
pydantic_core.Some
Was class Some(Generic[_T]); now class Some(Generic[_T_co]). pypi.org - Signature changed
pydantic_core.Some.value
Was value: _T; now value: _T_co. pypi.org
pydantic-core 2.50.0 breaking changes
- Signature changed
pydantic_core.core_schema.fraction_schema
Was def fraction_schema(*, le: Fraction | None = None, ge: Fraction | None = None, lt: Fraction | None = None, gt: Fraction | None = None, strict: bool | None = None, ref: str | None = None, metadata: dict[str, Any] | None = None... pypi.org - Signature changed
pydantic_core.core_schema.timedelta_schema
Was def timedelta_schema(*, strict: bool | None = None, le: timedelta | None = None, ge: timedelta | None = None, lt: timedelta | None = None, gt: timedelta | None = None, microseconds_precision: Literal['truncate', 'error'] = 'truncate'... pypi.org
pydantic-core 2.49.0 breaking changes
- Signature changed
pydantic_core.core_schema.missing_sentinel_schema
Was def missing_sentinel_schema(metadata: dict[str, Any] | None = None, serialization: SerSchema | None = None) -> MissingSentinelSchema; now def missing_sentinel_schema(schema: CoreSchema | None = None, *, metadata: dict[str, Any] | None... pypi.org - Signature changed
pydantic_core.core_schema.str_schema
Was def str_schema(*, pattern: str | Pattern[str] | None = None, max_length: int | None = None, min_length: int | None = None, strip_whitespace: bool | None = None, to_lower: bool | None = None, to_upper: bool | None = None, regex_engine... pypi.org - Signature changed
pydantic_core.core_schema.TaggedUnionSchema.choices
Was choices: Required[dict[Hashable, CoreSchema]]; now choices: Required[dict[Any, CoreSchema]]. pypi.org - Signature changed
pydantic_core.core_schema.TaggedUnionSchema.discriminator
Was discriminator: Required[str | list[str | int] | list[list[str | int]] | Callable[[Any], Hashable]]; now discriminator: Required[str | list[str | int] | list[list[str | int]] | Callable[[Any], Any]]. pypi.org
pydantic-core 2.47.0 breaking changes
- Removed
pydantic_core.MultiHostUrl.build
MultiHostUrl.build was removed in pydantic_core 2.47.0 pypi.org
pydantic-core 2.45.0 breaking changes
- Signature changed
pydantic_core.core_schema.computed_field
Was def computed_field(property_name: str, return_schema: CoreSchema, *, alias: str | None = None, metadata: dict[str, Any] | None = None) -> ComputedField; now def computed_field(property_name: str, return_schema: CoreSchema, *, alias... pypi.org
pydantic-core 2.42.0 breaking changes
- Signature changed
pydantic_core.SchemaSerializer.__init__
Was def __init__(self, schema: CoreSchema, config: CoreConfig | None = None) -> None; now def __init__(self, schema: CoreSchema, config: CoreConfig | None = None, _use_prebuilt: bool = True) -> None. pypi.org - Signature changed
pydantic_core.SchemaSerializer.__new__
Was def __new__(cls, schema: CoreSchema, config: CoreConfig | None = None) -> Self; now def __new__(cls, schema: CoreSchema, config: CoreConfig | None = None, _use_prebuilt: bool = True) -> Self. pypi.org - Signature changed
pydantic_core.SchemaSerializer.to_json
Was def to_json(self, value: Any, *, indent: int | None = None, ensure_ascii: bool = False, include: _IncEx | None = None, exclude: _IncEx | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool =... pypi.org - Signature changed
pydantic_core.SchemaSerializer.to_python
Was def to_python(self, value: Any, *, mode: str | None = None, include: _IncEx | None = None, exclude: _IncEx | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool =... pypi.org - Signature changed
pydantic_core.SchemaValidator.__init__
Was def __init__(self, schema: CoreSchema, config: CoreConfig | None = None) -> None; now def __init__(self, schema: CoreSchema, config: CoreConfig | None = None, _use_prebuilt: bool = True) -> None. pypi.org - Signature changed
pydantic_core.SchemaValidator.__new__
Was def __new__(cls, schema: CoreSchema, config: CoreConfig | None = None) -> Self; now def __new__(cls, schema: CoreSchema, config: CoreConfig | None = None, _use_prebuilt: bool = True) -> Self. pypi.org - Signature changed
pydantic_core.to_json
Was def to_json(value: Any, *, indent: int | None = None, ensure_ascii: bool = False, include: _IncEx | None = None, exclude: _IncEx | None = None, by_alias: bool = True, exclude_none: bool = False, round_trip: bool = False... pypi.org - Signature changed
pydantic_core.to_jsonable_python
Was def to_jsonable_python(value: Any, *, include: _IncEx | None = None, exclude: _IncEx | None = None, by_alias: bool = True, exclude_none: bool = False, round_trip: bool = False, timedelta_mode: Literal['iso8601', 'float'] = 'iso8601'... pypi.org
Older versions
33 older versions, each with its first changes. Sign up to see every change
Show 33 older versions
pydantic-core 2.41.5 breaking changes
- Behavior changed
URL credentials are no longer percent-encoded in this release; the option is to be reintroduced later. Code that relies on encoded credentials may need to handle them itself. github.com
pydantic-core 2.41.2 breaking changes
- Behavior changed
Serialization with serialize_as_any=True now uses a field's field_serializer, so output for such fields can differ from earlier versions. Check code that relies on the previous output. github.com
pydantic-core 2.41.0 breaking changes
- Behavior changed
default_factory
If validation has already failed, default factories that take the data argument are not called anymore. Code that relies on those factories running in that case must be updated. github.com
pydantic-core 2.40.1 breaking changes
- Behavior changed
SerializationInfo.mode
SerializationInfo.mode() now returns the same mode value that model_dump() uses. Code that compares or branches on its return value should be checked. github.com - Signature changed
pydantic_core.core_schema.FieldSerializationInfo.mode
Was mode: Literal['python', 'json']; now mode: Literal['python', 'json'] | str. pypi.org
And 1 more in this version.
pydantic-core 2.40.0 breaking changes
- Signature changed
pydantic_core.core_schema.dict_schema
Was def dict_schema(keys_schema: CoreSchema | None = None, values_schema: CoreSchema | None = None, *, min_length: int | None = None, max_length: int | None = None, strict: bool | None = None, ref: str | None = None, metadata: dict[str... pypi.org - Signature changed
pydantic_core.core_schema.multi_host_url_schema
Was def multi_host_url_schema(*, max_length: int | None = None, allowed_schemes: list[str] | None = None, host_required: bool | None = None, default_host: str | None = None, default_port: int | None = None, default_path: str | None = None... pypi.org
And 6 more in this version.
pydantic-core 2.39.0 breaking changes
- Signature changed
pydantic_core.SchemaSerializer.to_json
Was def to_json(self, value: Any, *, indent: int | None = None, ensure_ascii: bool = False, include: _IncEx | None = None, exclude: _IncEx | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool =... pypi.org - Signature changed
pydantic_core.SchemaSerializer.to_python
Was def to_python(self, value: Any, *, mode: str | None = None, include: _IncEx | None = None, exclude: _IncEx | None = None, by_alias: bool | None = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool =... pypi.org
pydantic-core 2.37.2 breaking changes
- Signature changed
pydantic_core.core_schema.missing_sentinel_schema
Was def missing_sentinel_schema() -> MissingSentinelSchema; now def missing_sentinel_schema(metadata: dict[str, Any] | None = None, serialization: SerSchema | None = None) -> MissingSentinelSchema. pypi.org
pydantic-core 2.36.0 breaking changes
- Signature changed
pydantic_core.core_schema.dataclass_field
Was def dataclass_field(name: str, schema: CoreSchema, *, kw_only: bool | None = None, init: bool | None = None, init_only: bool | None = None, validation_alias: str | list[str | int] | list[list[str | int]] | None = None... pypi.org - Signature changed
pydantic_core.core_schema.model_field
Was def model_field(schema: CoreSchema, *, validation_alias: str | list[str | int] | list[list[str | int]] | None = None, serialization_alias: str | None = None, serialization_exclude: bool | None = None, frozen: bool | None = None... pypi.org
And 3 more in this version.
pydantic-core 2.35.2 breaking changes
- Signature changed
pydantic_core.core_schema.FieldSerializationInfo.mode
Was mode: str; now mode: Literal['python', 'json']. pypi.org - Signature changed
pydantic_core.core_schema.SerializationInfo.mode
Was mode: str; now mode: Literal['python', 'json']. pypi.org
pydantic-core 2.35.1 breaking changes
- Signature changed
pydantic_core.core_schema.FieldSerializationInfo
Was class FieldSerializationInfo(SerializationInfo, Protocol); now class FieldSerializationInfo(SerializationInfo[ContextT], Protocol). pypi.org
pydantic-core 2.35.0 breaking changes
- Removed
Support for PyPy 3.9 was dropped and PyPy 3.11 was added. Users on PyPy 3.9 must move to a newer PyPy. github.com - Removed
pydantic_core.PydanticCustomError.__new__
PydanticCustomError.__new__ was removed in pydantic_core 2.35.0 pypi.org
And 18 more in this version.
pydantic-core 2.33.0 breaking changes
- Default changed
to_json
The default value of by_alias for to_json() is reverted back, so code that relied on the 2.32.0 default may behave differently again. Pass by_alias explicitly if the default matters. github.com - Default changed
to_jsonable_python
The default value of by_alias for to_jsonable_python() is reverted back, so code that relied on the 2.32.0 default may behave differently again. Pass by_alias explicitly if the default matters. github.com
And 3 more in this version.
pydantic-core 2.31.1 breaking changes
- Behavior changed
Prebuilt schemas no longer reuse after validators; code relying on the previous reuse behavior may see different validation results. github.com
pydantic-core 2.31.0 breaking changes
- Signature changed
pydantic_core.core_schema.typed_dict_schema
Was def typed_dict_schema(fields: dict[str, TypedDictField], *, cls: type[Any] | None = None, computed_fields: list[ComputedField] | None = None, strict: bool | None = None, extras_schema: CoreSchema | None = None, extra_behavior... pypi.org
pydantic-core 2.30.0 breaking changes
- Removed
pydantic_core.core_schema.ArgumentsSchema.populate_by_name
pydantic_core.core_schema.arguments_schema().populate_by_name was removed in pydantic_core 2.30.0 pypi.org - Removed
pydantic_core.core_schema.DataclassArgsSchema.populate_by_name
pydantic_core.core_schema.dataclass_args_schema().populate_by_name was removed in pydantic_core 2.30.0 pypi.org
And 19 more in this version.
pydantic-core 2.28.0 breaking changes
- Removed
The package no longer supports Python 3.8. Users on Python 3.8 must stay on an older release or upgrade Python. github.com - Signature changed
pydantic_core.core_schema.SerializationInfo.round_trip
Was def round_trip(self) -> bool; now round_trip: bool. pypi.org
pydantic-core 2.27.2 breaking changes
- Signature changed
pydantic_core.core_schema.no_info_after_validator_function
Was def no_info_after_validator_function(function: NoInfoValidatorFunction, schema: CoreSchema, *, ref: str | None = None, metadata: Dict[str, Any] | None = None, serialization: SerSchema | None = None) -> AfterValidatorFunctionSchema; now... pypi.org - Signature changed
pydantic_core.core_schema.no_info_before_validator_function
Was def no_info_before_validator_function(function: NoInfoValidatorFunction, schema: CoreSchema, *, ref: str | None = None, metadata: Dict[str, Any] | None = None, serialization: SerSchema | None = None) -> BeforeValidatorFunctionSchema... pypi.org
And 5 more in this version.
pydantic-core 2.27.1 breaking changes
- Signature changed
pydantic_core.core_schema.decimal_schema
Was def decimal_schema(*, allow_inf_nan: bool = None, multiple_of: Decimal | None = None, le: Decimal | None = None, ge: Decimal | None = None, lt: Decimal | None = None, gt: Decimal | None = None, max_digits: int | None = None... pypi.org - Signature changed
pydantic_core.core_schema.typed_dict_schema
Was def typed_dict_schema(fields: Dict[str, TypedDictField], *, cls: Type[TypedDict] | None = None, computed_fields: list[ComputedField] | None = None, strict: bool | None = None, extras_schema: CoreSchema | None = None, extra_behavior... pypi.org
And 1 more in this version.
pydantic-core 2.27.0 breaking changes
- Removed
Url
The docstrings for Url and MultiHostUrl were removed from pydantic_core because they moved to pydantic. Code that reads these docstrings from pydantic_core will no longer find them. github.com - Signature changed
pydantic_core.SchemaValidator.validate_json
Was def validate_json(self, input: str | bytes | bytearray, *, strict: bool | None = None, context: Any | None = None, self_instance: Any | None = None, allow_partial: bool = False) -> Any; now def validate_json(self, input: str | bytes |... pypi.org
And 2 more in this version.
pydantic-core 2.26.0 breaking changes
- Removed
pydantic_core.core_schema.MultiHostUrlSchema.cls
pydantic_core.core_schema.multi_host_url_schema().cls was removed in pydantic_core 2.26.0 pypi.org - Removed
pydantic_core.core_schema.UrlSchema.cls
pydantic_core.core_schema.url_schema().cls was removed in pydantic_core 2.26.0 pypi.org
And 6 more in this version.
pydantic-core 2.25.1 breaking changes
- Signature changed
pydantic_core.core_schema.multi_host_url_schema
Was def multi_host_url_schema(*, max_length: int | None = None, allowed_schemes: list[str] | None = None, host_required: bool | None = None, default_host: str | None = None, default_port: int | None = None, default_path: str | None = None... pypi.org - Signature changed
pydantic_core.core_schema.url_schema
Was def url_schema(*, max_length: int | None = None, allowed_schemes: list[str] | None = None, host_required: bool | None = None, default_host: str | None = None, default_port: int | None = None, default_path: str | None = None, strict... pypi.org
And 5 more in this version.
pydantic-core 2.25.0 breaking changes
- Behavior changed
host_required
The host_required constraint is now enforced for URLs, so URLs that previously passed validation without a host can now fail. Check URL validation for inputs missing a host. github.com - Signature changed
pydantic_core.core_schema.dataclass_schema
Was def dataclass_schema(cls: Type[Any], schema: CoreSchema, fields: List[str], *, cls_name: str | None = None, post_init: bool | None = None, revalidate_instances: Literal['always', 'never', 'subclass-instances'] | None = None, strict... pypi.org
And 3 more in this version.
pydantic-core 2.24.0 breaking changes
- Signature changed
pydantic_core.core_schema.arguments_schema
Was def arguments_schema(arguments: list[ArgumentsParameter], *, populate_by_name: bool | None = None, var_args_schema: CoreSchema | None = None, var_kwargs_schema: CoreSchema | None = None, ref: str | None = None, metadata: Dict[str, Any]... pypi.org - Signature changed
pydantic_core.CoreConfig.ser_json_timedelta
Was ser_json_timedelta: Literal['iso8601', 'float']; now ser_json_timedelta: Literal['iso8601', 'seconds_float', 'milliseconds_float']. pypi.org
And 2 more in this version.
pydantic-core 2.23.3 breaking changes
- Signature changed
pydantic_core.SchemaSerializer.to_json
Was def to_json(self, value: Any, *, indent: int | None = None, include: _IncEx = None, exclude: _IncEx = None, by_alias: bool = True, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip... pypi.org - Signature changed
pydantic_core.SchemaSerializer.to_python
Was def to_python(self, value: Any, *, mode: str | None = None, include: _IncEx = None, exclude: _IncEx = None, by_alias: bool = True, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip... pypi.org
And 2 more in this version.
pydantic-core 2.23.2 breaking changes
- Signature changed
pydantic_core.TzInfo.dst
Was def dst(self, _dt: datetime.datetime | None) -> datetime.timedelta; now def dst(self, dt: datetime.datetime | None) -> datetime.timedelta | None. pypi.org - Signature changed
pydantic_core.TzInfo.tzname
Was def tzname(self, _dt: datetime.datetime | None) -> str | None; now def tzname(self, dt: datetime.datetime | None) -> str | None. pypi.org
And 1 more in this version.
pydantic-core 2.23.0 breaking changes
- Signature changed
pydantic_core.core_schema.AfterValidatorFunctionSchema.metadata
Was metadata: Any; now metadata: Dict[str, Any]. pypi.org - Signature changed
pydantic_core.core_schema.any_schema
Was def any_schema(*, ref: str | None = None, metadata: Any = None, serialization: SerSchema | None = None) -> AnySchema; now def any_schema(*, ref: str | None = None, metadata: Dict[str, Any] | None = None, serialization: SerSchema | None... pypi.org
And 108 more in this version.
pydantic-core 2.21.0 breaking changes
- Signature changed
pydantic_core.from_json
Was def from_json(data: str | bytes | bytearray, *, allow_inf_nan: bool = True, cache_strings: bool | Literal['all', 'keys', 'none'] = True, allow_partial: bool = False) -> Any; now def from_json(data: str | bytes | bytearray, *... pypi.org - Signature changed
pydantic_core.to_json
Was def to_json(value: Any, *, indent: int | None = None, include: _IncEx = None, exclude: _IncEx = None, by_alias: bool = True, exclude_none: bool = False, round_trip: bool = False, timedelta_mode: Literal['iso8601', 'float'] = 'iso8601'... pypi.org
And 1 more in this version.
pydantic-core 2.20.0 breaking changes
- Signature changed
pydantic_core.core_schema.frozenset_schema
Was def frozenset_schema(items_schema: CoreSchema | None = None, *, min_length: int | None = None, max_length: int | None = None, strict: bool | None = None, ref: str | None = None, metadata: Any = None, serialization: SerSchema | None =... pypi.org - Signature changed
pydantic_core.core_schema.list_schema
Was def list_schema(items_schema: CoreSchema | None = None, *, min_length: int | None = None, max_length: int | None = None, strict: bool | None = None, ref: str | None = None, metadata: Any = None, serialization: IncExSeqOrElseSerSchema |... pypi.org
And 3 more in this version.
pydantic-core 2.19.0 breaking changes
- Signature changed
pydantic_core.core_schema.CoreConfig.ser_json_inf_nan
Was ser_json_inf_nan: Literal['null', 'constants']; now ser_json_inf_nan: Literal['null', 'constants', 'strings']. pypi.org - Signature changed
pydantic_core.core_schema.str_schema
Was def str_schema(*, pattern: str | None = None, max_length: int | None = None, min_length: int | None = None, strip_whitespace: bool | None = None, to_lower: bool | None = None, to_upper: bool | None = None, regex_engine... pypi.org
And 5 more in this version.
pydantic-core 2.18.4 breaking changes
- Signature changed
pydantic_core.SchemaSerializer.to_json
Was def to_json(self, value: Any, *, indent: int | None = None, include: _IncEx = None, exclude: _IncEx = None, by_alias: bool = True, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip... pypi.org - Signature changed
pydantic_core.SchemaSerializer.to_python
Was def to_python(self, value: Any, *, mode: str | None = None, include: _IncEx = None, exclude: _IncEx = None, by_alias: bool = True, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip... pypi.org
And 7 more in this version.
pydantic-core 2.18.1 breaking changes
- Signature changed
pydantic_core.SchemaSerializer.to_json
Was def to_json(self, value: Any, *, indent: int | None = None, include: _IncEx = None, exclude: _IncEx = None, by_alias: bool = True, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip... pypi.org - Signature changed
pydantic_core.SchemaSerializer.to_python
Was def to_python(self, value: Any, *, mode: str | None = None, include: _IncEx = None, exclude: _IncEx = None, by_alias: bool = True, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, round_trip... pypi.org
pydantic-core 2.18.0 breaking changes
- Signature changed
pydantic_core.core_schema.str_schema
Was def str_schema(*, pattern: str | None = None, max_length: int | None = None, min_length: int | None = None, strip_whitespace: bool | None = None, to_lower: bool | None = None, to_upper: bool | None = None, regex_engine... pypi.org - Signature changed
pydantic_core.from_json
Was def from_json(data: str | bytes | bytearray, *, allow_inf_nan: bool = True, cache_strings: bool = True) -> Any; now def from_json(data: str | bytes | bytearray, *, allow_inf_nan: bool = True, cache_strings: bool | Literal['all'... pypi.org
pydantic-core 2.17.0 breaking changes
- Signature changed
pydantic_core.core_schema.FieldSerializationInfo.round_trip
Was round_trip: bool; now def round_trip(self) -> bool. pypi.org - Signature changed
pydantic_core.core_schema.SerializationInfo.round_trip
Was round_trip: bool; now def round_trip(self) -> bool. pypi.org
And 11 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.