Skip to content

Upgrading pydantic_core 0.1 to 0.3

Unknown0.1.0 → 0.3.1

Fetching 2 releases from GitHub…0 / 2
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

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

  • removed: export Config
  • removed: export Schema
  • added: export CoreConfig
  • added: export CoreSchema
  • added: class AnySchema(TypedDict)
  • added: class ArgumentsParameter(TypedDict)
  • added: class ArgumentsSchema(TypedDict)
  • added: class BoolSchema(TypedDict)
  • added: class BytesSchema(TypedDict)
  • added: class CallSchema(TypedDict)
  • added: class CallableSchema(TypedDict)
  • added: class ChainSchema(TypedDict)
  • added: class CoreConfig(TypedDict)
  • added: class CustomError(TypedDict)
  • added: class DateSchema(TypedDict)
  • added: class DatetimeSchema(TypedDict)
  • added: class DictSchema(TypedDict)
  • added: class FloatSchema(TypedDict)
  • added: class FrozenSetSchema(TypedDict)
  • added: class FunctionPlainSchema(TypedDict)
  • added: class FunctionSchema(TypedDict)
  • added: class IntSchema(TypedDict)
  • added: class IsInstanceSchema(TypedDict)
  • added: class ListSchema(TypedDict)
  • added: class LiteralSchema(TypedDict)
  • added: class NewClassSchema(TypedDict)
  • added: class NoneSchema(TypedDict)
  • added: class NullableSchema(TypedDict)
  • added: class RecursiveReferenceSchema(TypedDict)
  • added: class SetSchema(TypedDict)
  • added: class StringSchema(TypedDict)
  • added: class TaggedUnionSchema(TypedDict)
  • added: class TimeSchema(TypedDict)
  • added: class TimedeltaSchema(TypedDict)
  • added: class TuplePositionalSchema(TypedDict)
  • added: class TupleVariableSchema(TypedDict)
  • added: class TypedDictField(TypedDict)
  • added: class TypedDictSchema(TypedDict)
  • added: class UnionSchema(TypedDict)
  • added: class WithDefaultSchema(TypedDict)
  • added: field AnySchema.type: Literal['any']
  • added: field ArgumentsParameter.alias: Union[str, List[Union[str, int]], List[List[Union[str, int]]]]
  • added: field ArgumentsParameter.mode: Literal['positional_only', 'positional_or_keyword', 'keyword_only']
  • added: field ArgumentsParameter.name: Required[str]
  • added: field ArgumentsParameter.schema: Required[CoreSchema]
  • added: field ArgumentsSchema.arguments_schema: Required[List[ArgumentsParameter]]
  • added: field ArgumentsSchema.populate_by_name: bool
  • added: field ArgumentsSchema.ref: str
  • added: field ArgumentsSchema.type: Required[Literal['arguments']]
  • added: field ArgumentsSchema.var_args_schema: CoreSchema
  • added: field ArgumentsSchema.var_kwargs_schema: CoreSchema
  • added: field BoolSchema.ref: str
  • added: field BoolSchema.strict: bool
  • added: field BoolSchema.type: Required[Literal['bool']]
  • added: field BytesSchema.max_length: int
  • added: field BytesSchema.min_length: int
  • added: field BytesSchema.ref: str
  • added: field BytesSchema.strict: bool
  • added: field BytesSchema.type: Required[Literal['bytes']]
  • added: field CallSchema.arguments_schema: CoreSchema
  • added: field CallSchema.function: Callable[..., Any]
  • added: field CallSchema.ref: NotRequired[str]
  • added: field CallSchema.return_schema: NotRequired[CoreSchema]
  • added: field CallSchema.type: Literal['call']
  • added: field CallableSchema.type: Literal['callable']
  • added: field ChainSchema.ref: NotRequired[str]
  • added: field ChainSchema.steps: List[CoreSchema]
  • added: field ChainSchema.type: Literal['chain']
  • added: field CoreConfig.allow_inf_nan: bool
  • added: field CoreConfig.config_choose_priority: int
  • added: field CoreConfig.config_merge_priority: int
  • added: field CoreConfig.from_attributes: bool
  • added: field CoreConfig.populate_by_name: bool
  • added: field CoreConfig.revalidate_models: bool
  • added: field CoreConfig.str_max_length: int
  • added: field CoreConfig.str_min_length: int
  • added: field CoreConfig.str_strip_whitespace: bool
  • added: field CoreConfig.str_to_lower: bool
  • added: field CoreConfig.str_to_upper: bool
  • added: field CoreConfig.strict: bool
  • added: field CoreConfig.typed_dict_extra_behavior: Literal['allow', 'forbid', 'ignore']
  • added: field CoreConfig.typed_dict_total: bool
  • added: field CustomError.kind: str
  • added: field CustomError.message: str
  • added: field DateSchema.ge: date
  • added: field DateSchema.gt: date
  • added: field DateSchema.le: date
  • added: field DateSchema.lt: date
  • added: field DateSchema.ref: str
  • added: field DateSchema.strict: bool
  • added: field DateSchema.type: Required[Literal['date']]
  • added: field DatetimeSchema.ge: datetime
  • added: field DatetimeSchema.gt: datetime
  • added: field DatetimeSchema.le: datetime
  • added: field DatetimeSchema.lt: datetime
  • added: field DatetimeSchema.ref: str
  • added: field DatetimeSchema.strict: bool
  • added: field DatetimeSchema.type: Required[Literal['datetime']]
  • added: field DictSchema.keys_schema: CoreSchema
  • added: field DictSchema.max_length: int
  • added: field DictSchema.min_length: int
  • added: field DictSchema.ref: str
  • added: field DictSchema.strict: bool
  • added: field DictSchema.type: Required[Literal['dict']]
  • added: field DictSchema.values_schema: CoreSchema
  • added: field FloatSchema.allow_inf_nan: bool
  • added: field FloatSchema.ge: float
  • added: field FloatSchema.gt: float
  • added: field FloatSchema.le: float
  • added: field FloatSchema.lt: float
  • added: field FloatSchema.multiple_of: float
  • added: field FloatSchema.ref: str
  • added: field FloatSchema.strict: bool
  • added: field FloatSchema.type: Required[Literal['float']]
  • added: field FrozenSetSchema.items_schema: CoreSchema
  • added: field FrozenSetSchema.max_length: int
  • added: field FrozenSetSchema.min_length: int
  • added: field FrozenSetSchema.ref: str
  • added: field FrozenSetSchema.strict: bool
  • added: field FrozenSetSchema.type: Required[Literal['frozenset']]
  • added: field FunctionPlainSchema.function: Callable[..., Any]
  • added: field FunctionPlainSchema.mode: Literal['plain']
  • added: field FunctionPlainSchema.ref: NotRequired[str]
  • added: field FunctionPlainSchema.type: Literal['function']
  • added: field FunctionPlainSchema.validator_instance: NotRequired[Any]
  • added: field FunctionSchema.function: Callable[..., Any]
  • added: field FunctionSchema.mode: Literal['before', 'after', 'wrap']
  • added: field FunctionSchema.ref: NotRequired[str]
  • added: field FunctionSchema.schema: CoreSchema
  • added: field FunctionSchema.type: Literal['function']
  • added: field FunctionSchema.validator_instance: NotRequired[Any]
  • added: field IntSchema.ge: int
  • added: field IntSchema.gt: int
  • added: field IntSchema.le: int
  • added: field IntSchema.lt: int
  • added: field IntSchema.multiple_of: int
  • added: field IntSchema.ref: str
  • added: field IntSchema.strict: bool
  • added: field IntSchema.type: Required[Literal['int']]
  • added: field IsInstanceSchema.cls: Type[Any]
  • added: field IsInstanceSchema.type: Literal['is-instance']
  • added: field ListSchema.items_schema: CoreSchema
  • added: field ListSchema.max_length: int
  • added: field ListSchema.min_length: int
  • added: field ListSchema.ref: str
  • added: field ListSchema.strict: bool
  • added: field ListSchema.type: Required[Literal['list']]
  • added: field LiteralSchema.expected: List[Any]
  • added: field LiteralSchema.ref: NotRequired[str]
  • added: field LiteralSchema.type: Literal['literal']
  • added: field NewClassSchema.call_after_init: NotRequired[str]
  • added: field NewClassSchema.cls: Type[Any]
  • added: field NewClassSchema.config: NotRequired[CoreConfig]
  • added: field NewClassSchema.ref: NotRequired[str]
  • added: field NewClassSchema.schema: CoreSchema
  • added: field NewClassSchema.strict: NotRequired[bool]
  • added: field NewClassSchema.type: Literal['new-class']
  • added: field NoneSchema.ref: NotRequired[str]
  • added: field NoneSchema.type: Literal['none']
  • added: field NullableSchema.ref: str
  • added: field NullableSchema.schema: Required[CoreSchema]
  • added: field NullableSchema.strict: bool
  • added: field NullableSchema.type: Required[Literal['nullable']]
  • added: field RecursiveReferenceSchema.schema_ref: str
  • added: field RecursiveReferenceSchema.type: Literal['recursive-ref']
  • added: field SetSchema.items_schema: CoreSchema
  • added: field SetSchema.max_length: int
  • added: field SetSchema.min_length: int
  • added: field SetSchema.ref: str
  • added: field SetSchema.strict: bool
  • added: field SetSchema.type: Required[Literal['set']]
  • added: field StringSchema.max_length: int
  • added: field StringSchema.min_length: int
  • added: field StringSchema.pattern: str
  • added: field StringSchema.ref: str
  • added: field StringSchema.strict: bool
  • added: field StringSchema.strip_whitespace: bool
  • added: field StringSchema.to_lower: bool
  • added: field StringSchema.to_upper: bool
  • added: field StringSchema.type: Required[Literal['str']]
  • added: field TaggedUnionSchema.choices: Dict[str, CoreSchema]
  • added: field TaggedUnionSchema.custom_error: NotRequired[CustomError]
  • added: field TaggedUnionSchema.discriminator: Union[str, List[Union[str, int]], List[List[Union[str, int]]], Callable[[Any], Optional[str]]]
  • added: field TaggedUnionSchema.ref: NotRequired[str]
  • added: field TaggedUnionSchema.strict: NotRequired[bool]
  • added: field TaggedUnionSchema.type: Literal['tagged-union']
  • added: field TimeSchema.ge: time
  • added: field TimeSchema.gt: time
  • added: field TimeSchema.le: time
  • added: field TimeSchema.lt: time
  • added: field TimeSchema.ref: str
  • added: field TimeSchema.strict: bool
  • added: field TimeSchema.type: Required[Literal['time']]
  • added: field TimedeltaSchema.ge: timedelta
  • added: field TimedeltaSchema.gt: timedelta
  • added: field TimedeltaSchema.le: timedelta
  • added: field TimedeltaSchema.lt: timedelta
  • added: field TimedeltaSchema.ref: str
  • added: field TimedeltaSchema.strict: bool
  • added: field TimedeltaSchema.type: Required[Literal['timedelta']]
  • added: field TuplePositionalSchema.extra_schema: CoreSchema
  • added: field TuplePositionalSchema.items_schema: Required[List[CoreSchema]]
  • added: field TuplePositionalSchema.mode: Required[Literal['positional']]
  • added: field TuplePositionalSchema.ref: str
  • added: field TuplePositionalSchema.strict: bool
  • added: field TuplePositionalSchema.type: Required[Literal['tuple']]
  • added: field TupleVariableSchema.items_schema: CoreSchema
  • added: field TupleVariableSchema.max_length: int
  • added: field TupleVariableSchema.min_length: int
  • added: field TupleVariableSchema.mode: Literal['variable']
  • added: field TupleVariableSchema.ref: str
  • added: field TupleVariableSchema.strict: bool
  • added: field TupleVariableSchema.type: Required[Literal['tuple']]
  • added: field TypedDictField.alias: Union[str, List[Union[str, int]], List[List[Union[str, int]]]]
  • added: field TypedDictField.frozen: bool
  • added: field TypedDictField.required: bool
  • added: field TypedDictField.schema: Required[CoreSchema]
  • added: field TypedDictSchema.extra_behavior: Literal['allow', 'forbid', 'ignore']
  • added: field TypedDictSchema.extra_validator: CoreSchema
  • added: field TypedDictSchema.fields: Required[Dict[str, TypedDictField]]
  • added: field TypedDictSchema.from_attributes: bool
  • added: field TypedDictSchema.populate_by_name: bool
  • added: field TypedDictSchema.ref: str
  • added: field TypedDictSchema.return_fields_set: bool
  • added: field TypedDictSchema.strict: bool
  • added: field TypedDictSchema.total: bool
  • added: field TypedDictSchema.type: Required[Literal['typed-dict']]
  • added: field UnionSchema.choices: Required[List[CoreSchema]]
  • added: field UnionSchema.custom_error: CustomError
  • added: field UnionSchema.ref: str
  • added: field UnionSchema.strict: bool
  • added: field UnionSchema.type: Required[Literal['union']]
  • added: field WithDefaultSchema.default: Any
  • added: field WithDefaultSchema.default_factory: Callable[[], Any]
  • added: field WithDefaultSchema.on_error: Literal['raise', 'omit', 'default']
  • added: field WithDefaultSchema.ref: str
  • added: field WithDefaultSchema.schema: Required[CoreSchema]
  • added: field WithDefaultSchema.strict: bool
  • added: field WithDefaultSchema.type: Required[Literal['default']]
  • added: function any_schema() -> AnySchema
  • added: function arguments_parameter(name: str, schema: CoreSchema, *, mode: Literal['positional_only', 'positional_or_keyword', 'keyword_only'] | None=…, alias: str | list[str | int] | list[list[str | int]] | None=…) -> ArgumentsParameter
  • added: function arguments_schema(*arguments: ArgumentsParameter, populate_by_name: bool | None=…, var_args_schema: CoreSchema | None=…, var_kwargs_schema: CoreSchema | None=…, ref: str | None=…) -> ArgumentsSchema
  • added: function bool_schema(strict: bool | None=…, ref: str | None=…) -> BoolSchema
  • added: function bytes_schema(*, max_length: int | None=…, min_length: int | None=…, strict: bool | None=…, ref: str | None=…) -> BytesSchema
  • added: function call_schema(arguments: CoreSchema, function: Callable[..., Any], *, return_schema: CoreSchema | None=…, ref: str | None=…) -> CallSchema
  • added: function callable_schema() -> CallableSchema
  • added: function chain_schema(*steps: CoreSchema, ref: str | None=…) -> ChainSchema
  • added: function date_schema(*, strict: bool | None=…, le: date | None=…, ge: date | None=…, lt: date | None=…, gt: date | None=…, ref: str | None=…) -> DateSchema
  • added: function datetime_schema(*, strict: bool | None=…, le: datetime | None=…, ge: datetime | None=…, lt: datetime | None=…, gt: datetime | None=…, ref: str | None=…) -> DatetimeSchema
  • added: function dict_not_none(**kwargs: Any) -> Any
  • added: function dict_schema(keys_schema: CoreSchema | None=…, values_schema: CoreSchema | None=…, *, min_length: int | None=…, max_length: int | None=…, strict: bool | None=…, ref: str | None=…) -> DictSchema
  • added: function float_schema(*, allow_inf_nan: bool | None=…, multiple_of: float | None=…, le: float | None=…, ge: float | None=…, lt: float | None=…, gt: float | None=…, strict: bool | None=…, ref: str | None=…) -> FloatSchema
  • added: function frozen_set_schema(items_schema: CoreSchema | None=…, *, min_length: int | None=…, max_length: int | None=…, strict: bool | None=…, ref: str | None=…) -> FrozenSetSchema
  • added: function function_after_schema(function: Callable[..., Any], schema: CoreSchema, *, validator_instance: Any | None=…, ref: str | None=…) -> FunctionSchema
  • added: function function_before_schema(function: Callable[..., Any], schema: CoreSchema, *, validator_instance: Any | None=…, ref: str | None=…) -> FunctionSchema
  • added: function function_plain_schema(function: Callable[..., Any], *, validator_instance: Any | None=…, ref: str | None=…) -> FunctionPlainSchema
  • added: function function_wrap_schema(function: Callable[..., Any], schema: CoreSchema, *, validator_instance: Any | None=…, ref: str | None=…) -> FunctionSchema
  • added: function int_schema(*, multiple_of: int | None=…, le: int | None=…, ge: int | None=…, lt: int | None=…, gt: int | None=…, strict: bool | None=…, ref: str | None=…) -> IntSchema
  • added: function is_instance_schema(cls: Type[Any]) -> IsInstanceSchema
  • added: function list_schema(items_schema: CoreSchema | None=…, *, min_length: int | None=…, max_length: int | None=…, strict: bool | None=…, ref: str | None=…) -> ListSchema
  • added: function literal_schema(*expected: Any, ref: str | None=…) -> LiteralSchema
  • added: function new_class_schema(cls: Type[Any], schema: CoreSchema, *, call_after_init: str | None=…, strict: bool | None=…, ref: str | None=…, config: CoreConfig | None=…) -> NewClassSchema
  • added: function none_schema(*, ref: str | None=…) -> NoneSchema
  • added: function nullable_schema(schema: CoreSchema, *, strict: bool | None=…, ref: str | None=…) -> NullableSchema
  • added: function recursive_reference_schema(schema_ref: str) -> RecursiveReferenceSchema
  • added: function set_schema(items_schema: CoreSchema | None=…, *, min_length: int | None=…, max_length: int | None=…, strict: bool | None=…, ref: str | None=…) -> SetSchema
  • added: function string_schema(*, pattern: str | None=…, max_length: int | None=…, min_length: int | None=…, strip_whitespace: bool | None=…, to_lower: bool | None=…, to_upper: bool | None=…, strict: bool | None=…, ref: str | None=…) -> StringSchema
  • added: function tagged_union_schema(choices: Dict[str, CoreSchema], discriminator: str | list[str | int] | list[list[str | int]] | Callable[[Any], str | None], *, custom_error_kind: str, custom_error_message: str, strict: bool | None=…, ref: str | None=…) -> TaggedUnionSchema | (choices: Dict[str, CoreSchema], discriminator: str | list[str | int] | list[list[str | int]] | Callable[[Any], str | None], *,…
  • added: function time_schema(*, strict: bool | None=…, le: time | None=…, ge: time | None=…, lt: time | None=…, gt: time | None=…, ref: str | None=…) -> TimeSchema
  • added: function timedelta_schema(*, strict: bool | None=…, le: timedelta | None=…, ge: timedelta | None=…, lt: timedelta | None=…, gt: timedelta | None=…, ref: str | None=…) -> TimedeltaSchema
  • added: function tuple_positional_schema(*items_schema: CoreSchema, extra_schema: CoreSchema | None=…, strict: bool | None=…, ref: str | None=…) -> TuplePositionalSchema
  • added: function tuple_variable_schema(items_schema: CoreSchema | None=…, *, min_length: int | None=…, max_length: int | None=…, strict: bool | None=…, ref: str | None=…) -> TupleVariableSchema
  • added: function typed_dict_field(schema: CoreSchema, *, required: bool | None=…, alias: str | list[str | int] | list[list[str | int]] | None=…, frozen: bool | None=…) -> TypedDictField
  • added: function typed_dict_schema(fields: Dict[str, TypedDictField], *, strict: bool | None=…, extra_validator: CoreSchema | None=…, return_fields_set: bool | None=…, ref: str | None=…, extra_behavior: Literal['allow', 'forbid', 'ignore'] | None=…, total: bool | None=…, populate_by_name: bool | None=…, from_attributes: bool | None=…) -> TypedDictSchema
  • added: function union_schema(*choices: CoreSchema, custom_error_kind: str, custom_error_message: str, strict: bool | None=…, ref: str | None=…) -> UnionSchema | (*choices: CoreSchema, strict: bool | None=…, ref: str | None=…) -> UnionSchema
  • added: function with_default_schema(schema: CoreSchema, *, default: Any=…, default_factory: Callable[[], Any] | None=…, on_error: Literal['raise', 'omit', 'default'] | None=…, strict: bool | None=…, ref: str | None=…) -> WithDefaultSchema
  • added: variable CoreSchema
  • added: variable Omitted