fix(deps): update dependency pydantic to v1.9.0 - abandoned - autoclosed #148
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.8.2
->1.9.0
Release Notes
samuelcolvin/pydantic
v1.9.0
Compare Source
Thank you to pydantic's sponsors:
@sthagen, @timdrijvers, @toinbis, @koxudaxi, @ginomempin, @primer-io, @and-semakin, @westonsteimel, @reillysiemens,
@es3n1n, @jokull, @JonasKs, @Rehket, @corleyma, @daddycocoaman, @hardbyte, @datarootsio, @jodal, @aminalaee, @rafsaf,
@jqueguiner, @chdsbd, @kevinalh, @Mazyod, @grillazz, @JonasKs, @simw, @leynier, @xfenix
for their kind support.
Highlights
Config.smart_union
for better union logic, #2092 by @PrettyWoodfoo___bar
, #3159 by @Air-Mark__dataclass_transform__
, #2721 by @tiangolov1.9.0 (2021-12-31) Changes
update_forward_refs
toConfig.json_encodes
prevent name clashes in types defined via strings, #3583 by @samuelcolvin0.910
,0.920
,0.921
&0.930
, #3573 & #3594 by @PrettyWood, @christianbundy, @samuelcolvinv1.9.0a2 (2021-12-24) Changes
json()
by default, #3542 by @PrettyWood__root__
attribute fromBaseModel
, #3540 by @laydayextra
fields with model__repr__
, #3234 by @cocolmanConfig.copy_on_model_validation
always have all fields, #3201 by @PrettyWoodv1.9.0a1 (2021-12-18) Changes
Decimal
-specific validation configurations inField()
, additionally to usingcondecimal()
,to allow better support from editors and tooling, #3507 by @tiangolo
arm64
binaries suitable for MacOS with an M1 CPU to PyPI, #3498 by @samuelcolvinNone
was considered invalid when using aUnion
type containingAny
orobject
, #3444 by @tharradinefield
argument (of typepydantic.fields.ModelField
) to__modify_schema__()
if present, #3434 by @jasujmtyping.ClassVar
string type annotation, #3401 by @uriyyotyping_extensions.TypedDict
, #3374 by @BvB93to more accurately describe what the validator is doing; changed from
name_must_contain_space
tovalue_must_equal_bar
, #3327 by @michaelrios28AmqpDsn
class, #3254 by @kludexEnum
value as default in generated JSON schema, #3190 by @joaommartinsvalidate_arguments
now supportsextra
customization (used to always beExtra.forbid
), #3161 by @PrettyWoodpydantic.utils.is_valid_field
so that it ignores untyped private variables, #3146 by @hi-ogawavalidate_arguments
issue withConfig.validate_all
, #3135 by @PrettyWoodobject
type, #3062 by @PrettyWood_special
properties on parent classes, #3043 by @zulrangTypedDict
class for error objects, #3038 by @matthewhughes934create_model_from_typeddict
mypy compliant, #3008 by @PrettyWoodPrivateAttr
, #2989 by @hmvpUnion
type with a complex subfield, #2936 by @cbartzStrictStr
permittingEnum
values where the enum inherits fromstr
, #2929 by @samuelcolvinSecretsSettingsSource
parse values being assigned to fields of complex types when sourced from a secrets file,just as when sourced from environment variables, #2917 by @davidmreed
pydantic-mypy
plugin compatible withpyproject.toml
configuration, consistent withmypy
changes.See the doc for more information, #2908 by @jrwalk
Json[T]
, #2860 by @geekingfrogdespite pydantic being primarily a parsing library, #2855 by @paxcodes
Deque
fields, #2810 by @sergejkozinLiteral
, #2794 by @PrettyWoodNamedTuple
andTypedDict
when they're used directly as the type of fieldswithin Pydantic models, #2760 by @jameysharp
mypy
plugin fails onconstruct
method call forBaseSettings
derived classes, #2753 by @uriyyopydantic.create_model
function, #2748 by @uriyyoChanged it to a period, #2733 by @krisaoe
schema
toschema_
to avoid shadowing of global variable name, #2724 by @shahriyarr__dataclass_transform__
, #2721 by @tiangoloBaseConfig
and handlemax_length = 0
, #2719 by @PrettyWoodorm_mode
checking to allow recursive ORM mode parsing with dicts, #2718 by @nuno-andreNamedTuple
and has a default value, #2707 by @PrettyWoodEnum
fields now properly support extra kwargs in schema generation, #2697 by @sammchardyuniqueItems
option toConstrainedList
, #2618 by @nuno-andre__version__
attribute to pydantic module, #2572 by @paxcodespostgresql+asyncpg
,postgresql+pg8000
,postgresql+psycopg2
,postgresql+psycopg2cffi
,postgresql+py-postgresql
and
postgresql+pygresql
schemes forPostgresDsn
, #2567 by @postgres-asyncpgdecimal_places
argument is specified, #2524 by @cwe5590collections.abc.Callable
to be used as type in python 3.9, #2519 by @daviskirksetup.py
to allow for custom CFLAGS when compiling, #2517 by @peterroelants
default_factory
to run it only once even ifConfig.validate_all
is set, #2515 by @PrettyWoodAnyUrl
hosts. This allows urls with DNS labelslooking like IPs to validate as they are perfectly valid host names, #2512 by @sbv-csis
minItems
andmaxItems
in generated JSON schema for fixed-length tuples, #2497 by @PrettyWoodstrict
argument toconbytes
, #2489 by @koxudaxiGetterDict
to docs, #2463 by @nuno-andreKafkaDsn
type,HttpUrl
now has default port 80 for http and 443 for https, #2447 by @MihanixAPastDate
andFutureDate
types, #2425 by @KludexGeneric
fields with subtypes, #2375 by @maximbergNameEmail
to str, #2341 by @alecgeronaConfig.smart_union
to prevent coercion inUnion
if possible, seethe doc for more information, #2092 by @PrettyWood
typing.Counter
as a model field type, #2060 by @uriyyo__bases__
when constructing new parameterised classes, so thatA <: B => A[int] <: B[int]
, #2007 by @diabolo-danFileUrl
type that allows URLs that conform to RFC 8089.Add
host_required
parameter, which isTrue
by default (AnyUrl
and subclasses),False
inRedisDsn
,FileUrl
, #1983 by @vgerakconfrozenset()
, analogous toconset()
andconlist()
, #1897 by @PrettyWoodroot_validator
if overridden, #1895 by @PrettyWoodrepr
(defaults toTrue
) parameter toField
, to hide it from the default representation of theBaseModel
, #1831 by @fnepConfiguration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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 WhiteSource Renovate. View repository job log here.