fix(deps): update dependency pydantic to v1.10.1 #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.9.2
->1.10.1
Release Notes
pydantic/pydantic
v1.10.1
Compare Source
__hash__
method topydancic.color.Color
class, #4454 by @czakiv1.10.0
Compare Source
dataclass
decorator to really act like its standard lib equivalent.It hence keeps
__eq__
,__hash__
, ... and makes comparison with its non-validated version possible.It also fixes usage of
frozen
dataclasses in fields and usage ofdefault_factory
in nested dataclasses.The support of
Config.extra
has been added.Finally, config customization directly via a
dict
is now possible, #2557 by @PrettyWoodBREAKING CHANGES:
compiled
boolean (whether pydantic is compiled with cython) has been moved frommain.py
toversion.py
Config.extra
is supported,dataclass
ignores by default extra arguments (likeBaseModel
)__set_name__
protocol inBaseModel
for PrivateAttrs, #4407 by @tlambert03parse_env_var
inConfig
, #4406 by @acmiyaguchimaster
tomain
, #4405 by @hramezaniStrictStr
does not raiseValidationError
whenmax_length
is present inField
, #4388 by @hramezaniSecretStr
andSecretBytes
hashable, #4387 by @chbndrhnnsStrictBytes
does not raiseValidationError
whenmax_length
is present inField
, #4380 by @JeanArhancettype
, #4375 by @hramezanire.Pattern
, #4366 by @hramezani__post_init_post_parse__
is incorrectly passed keyword arguments when no__post_init__
is defined, #4361 by @hramezaniForwardRef
andCallable
frompydantic.typing
instead oftyping
and also exposeMappingIntStrAny
, #4358 by @aminalaeeAny
types from thedataclass
decorator so it can be used with thedisallow_any_expr
mypy option, #4356 by @DetachHeadpydantic/pydantic
, #4348 by @yezz123Extra.forbid
is validated multiple times, #4343 by @detachheadoneOf
instead ofanyOf
when generating OpenAPI schema definitions, #4335 by @MaxwellPayneJson
type.Json[list[str]]
will be now inferred aslist[str]
,Json[Any]
should be used instead of plainJson
.Runtime behaviour is not changed, #4332 by @Bobronium
alias is not None
check, rather thanbool(alias)
, #4253 by @sergeytsaplinForwardRef
s inField.outer_type_
, #4249 by @JacobHayes__dataclass_transform__
has been replaced bytyping_extensions.dataclass_transform
, which is the preferred way to mark pydantic models as a dataclass under PEP 681, #4241 by @multimericConfig
when validating nestedNamedTuple
fields, #4219 by @synekBaseModel.construct
to work with aliased Fields, #4192 by @kylebamossmart_deepcopy
and revert todeepcopy
if so, #4184 by @coneybeareConfig.anystr_upper
andto_upper
kwarg to constr and conbytes, #4165 by @sathelerset
andfrozenset
when they include default values, #4155 by @aminalaee@validator
are classmethods, #4102 by @DMRobertsonType[]
in schema, #4051 by @aminalaeedefault
value in JSON Schema whenconst=True
, #4031 by @aminalaeeallow_inf_nan
, #3994 by @tiangoloenv_prefix
had characters in common withenv_nested_delimiter
, #3975 by @arsenroncreate_model
, #3945 by @hot123sBaseModel
, #3920 by @irgolicMinus was serialized in incorrect place ("P-1DT23H59M59.888735S" instead of correct "-P1DT23H59M59.888735S"), #3899 by @07pepa
supports the following schemes:
cockroachdb
,cockroachdb+psycopg2
andcockroachdb+asyncpg
, #3839 by @blubber__init__
method in models, #3824 by @patrick91BaseModel
instances, #3777 by @PrettyWoodConstrainedDate
andcondate
, #3740 by @hottwajkw_only
in dataclasses, #3670 by @detachheadColor
class, #3646 by @aminalaeeto_lower_camel()
for "non pascal case" camel case, #3463 by @schlerpdefault
anddefault_factory
arguments in Mypy plugin, #3430 by @klaa97inspect.signature
forBaseModel
, #3413 by @fix-inspect-signatureSecretField
abstract class so that all the current and future secret fields likeSecretStr
andSecretBytes
will derive from it, #3409 by @expobrainPostgresDsn
, #3337 by @rglskSecretsSettingsSource
to respectconfig.case_sensitive
, #3273 by @JeanArhancetConfigError
when multiple fields are incorrectly set for a single validator, #3215 by @SunsetOrangeField
s insideAnnotated
forTypedDicts
required, #3133 by @ezegomezint_validator
, #3112 by @ojii__rich_repr__
method toRepresentation
class which enables pretty printing with Rich, #3099 by @willmcguganAnyUrl
and descendent types, #3061 by @FaresAhmedbvalidate_arguments
decorator now supportsalias
, #3019 by @MAD-py__dict__
and__weakref__
attributes inAnyUrl
and IP address fields, #2890 by @nuno-andreFinal
in a field type annotation, #2766 by @uriyyotyping_extensions>=4.1.0
to guaranteedataclass_transform
is available, #4424 by @commonismcopy_on_model_validation
to reflect recent changes, #4369 by @samuelcolvin__slots__
is passed tocreate_model
,__slots__
is then ignored, #4432 by @samuelcolvinBaseSettings.Config
to avoid mypy errors, also correct mypy version compatibility notice in docs, #4450 by @samuelcolvinConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.