From 5de27ca465e3a75fb26924084c8b5df211bb0e83 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Sat, 18 Dec 2021 21:18:37 +0000 Subject: [PATCH] update history and uprev version --- HISTORY.md | 106 +++++++++++++++++++++++++++++++ changes/1807-xavier.md | 1 - changes/1831-fnep.md | 1 - changes/1895-PrettyWood.md | 1 - changes/1897-PrettyWood.md | 1 - changes/1983-vgerak.md | 2 - changes/2007-diabolo-dan.md | 1 - changes/2060-uriyyo.md | 1 - changes/2092-PrettyWood.md | 1 - changes/2341-alecgerona.md | 1 - changes/2375-maximberg.md | 1 - changes/2425-Kludex.md | 1 - changes/2447-MihanixA.md | 2 - changes/2463-nuno-andre.md | 1 - changes/2465-daviskirk.md | 1 - changes/2489-koxudaxi.md | 1 - changes/2497-PrettyWood.md | 1 - changes/2512-sbv-csis.md | 2 - changes/2515-PrettyWood.md | 1 - changes/2517-peterroelants.md | 1 - changes/2519-daviskirk.md | 1 - changes/2524-cwe5590.md | 1 - changes/2567-postgres-asyncpg.md | 1 - changes/2572-paxcodes.md | 1 - changes/2580-samuelcolvin.md | 1 - changes/2588-uriyyo.md | 1 - changes/2618-nuno-andre.md | 1 - changes/2650-PrettyWood.md | 1 - changes/2697-sammchardy.md | 1 - changes/2707-PrettyWood.md | 1 - changes/2712-RatulMaharaj.md | 1 - changes/2718-nuno-andre.md | 1 - changes/2719-PrettyWood.md | 1 - changes/2721-tiangolo.md | 1 - changes/2724-shahriyarr.md | 1 - changes/2733-krisaoe.md | 2 - changes/2743-uriyyo.md | 1 - changes/2748-uriyyo.md | 1 - changes/2753-uriyyo.md | 1 - changes/2760-jameysharp.md | 1 - changes/2794-PrettyWood.md | 1 - changes/2810-sergejkozin.md | 1 - changes/2855-paxcodes.md | 1 - changes/2856-paxcodes.md | 1 - changes/2860-geekingfrog.md | 1 - changes/2885-PrettyWood.md | 1 - changes/2908-jrwalk.md | 1 - changes/2913-gbdlin.md | 1 - changes/2917-davidmreed.md | 1 - changes/2929-samuelcolvin.md | 1 - changes/2936-cbartz.md | 1 - changes/2989-hmvp.md | 1 - changes/3008-PrettyWood.md | 1 - changes/3018-JacobHayes.md | 1 - changes/3038-matthewhughes934.md | 1 - changes/3043-zulrang.md | 1 - changes/3062-PrettyWood.md | 1 - changes/3122-PrettyWood.md | 1 - changes/3135-PrettyWood.md | 1 - changes/3146-hi-ogawa.md | 1 - changes/3159-Air-Mark.md | 1 - changes/3161-PrettyWood.md | 1 - changes/3175-christianbundy.md | 1 - changes/3190-joaommartins.md | 1 - changes/3254-kludex.md | 1 - changes/3327-michaelrios28.md | 1 - changes/3374-BvB93.md | 1 - changes/3401-uriyyo.md | 1 - changes/3434-jasujm.md | 2 - changes/3444-tharradine.md | 1 - changes/3498-samuelcolvin.md | 1 - changes/3507-tiangolo.md | 1 - changes/619-PrettyWood.md | 1 - changes/660-daviskirk.md | 1 - pydantic/version.py | 2 +- 75 files changed, 107 insertions(+), 79 deletions(-) delete mode 100644 changes/1807-xavier.md delete mode 100644 changes/1831-fnep.md delete mode 100644 changes/1895-PrettyWood.md delete mode 100644 changes/1897-PrettyWood.md delete mode 100644 changes/1983-vgerak.md delete mode 100644 changes/2007-diabolo-dan.md delete mode 100644 changes/2060-uriyyo.md delete mode 100644 changes/2092-PrettyWood.md delete mode 100644 changes/2341-alecgerona.md delete mode 100644 changes/2375-maximberg.md delete mode 100644 changes/2425-Kludex.md delete mode 100644 changes/2447-MihanixA.md delete mode 100644 changes/2463-nuno-andre.md delete mode 100644 changes/2465-daviskirk.md delete mode 100644 changes/2489-koxudaxi.md delete mode 100644 changes/2497-PrettyWood.md delete mode 100644 changes/2512-sbv-csis.md delete mode 100644 changes/2515-PrettyWood.md delete mode 100644 changes/2517-peterroelants.md delete mode 100644 changes/2519-daviskirk.md delete mode 100644 changes/2524-cwe5590.md delete mode 100644 changes/2567-postgres-asyncpg.md delete mode 100644 changes/2572-paxcodes.md delete mode 100644 changes/2580-samuelcolvin.md delete mode 100644 changes/2588-uriyyo.md delete mode 100644 changes/2618-nuno-andre.md delete mode 100644 changes/2650-PrettyWood.md delete mode 100644 changes/2697-sammchardy.md delete mode 100644 changes/2707-PrettyWood.md delete mode 100644 changes/2712-RatulMaharaj.md delete mode 100644 changes/2718-nuno-andre.md delete mode 100644 changes/2719-PrettyWood.md delete mode 100644 changes/2721-tiangolo.md delete mode 100644 changes/2724-shahriyarr.md delete mode 100644 changes/2733-krisaoe.md delete mode 100644 changes/2743-uriyyo.md delete mode 100644 changes/2748-uriyyo.md delete mode 100644 changes/2753-uriyyo.md delete mode 100644 changes/2760-jameysharp.md delete mode 100644 changes/2794-PrettyWood.md delete mode 100644 changes/2810-sergejkozin.md delete mode 100644 changes/2855-paxcodes.md delete mode 100644 changes/2856-paxcodes.md delete mode 100644 changes/2860-geekingfrog.md delete mode 100644 changes/2885-PrettyWood.md delete mode 100644 changes/2908-jrwalk.md delete mode 100644 changes/2913-gbdlin.md delete mode 100644 changes/2917-davidmreed.md delete mode 100644 changes/2929-samuelcolvin.md delete mode 100644 changes/2936-cbartz.md delete mode 100644 changes/2989-hmvp.md delete mode 100644 changes/3008-PrettyWood.md delete mode 100644 changes/3018-JacobHayes.md delete mode 100644 changes/3038-matthewhughes934.md delete mode 100644 changes/3043-zulrang.md delete mode 100644 changes/3062-PrettyWood.md delete mode 100644 changes/3122-PrettyWood.md delete mode 100644 changes/3135-PrettyWood.md delete mode 100644 changes/3146-hi-ogawa.md delete mode 100644 changes/3159-Air-Mark.md delete mode 100644 changes/3161-PrettyWood.md delete mode 100644 changes/3175-christianbundy.md delete mode 100644 changes/3190-joaommartins.md delete mode 100644 changes/3254-kludex.md delete mode 100644 changes/3327-michaelrios28.md delete mode 100644 changes/3374-BvB93.md delete mode 100644 changes/3401-uriyyo.md delete mode 100644 changes/3434-jasujm.md delete mode 100644 changes/3444-tharradine.md delete mode 100644 changes/3498-samuelcolvin.md delete mode 100644 changes/3507-tiangolo.md delete mode 100644 changes/619-PrettyWood.md delete mode 100644 changes/660-daviskirk.md diff --git a/HISTORY.md b/HISTORY.md index c362e6c..77d17bb 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,109 @@ +## v1.9.0a1 (2021-12-18) + +Thank you to pydantic's sponsors: +@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 +for their kind support. + +### Highlights + +* add python 3.10 support, #2885 by @PrettyWood +* [Discriminated unions](https://pydantic-docs.helpmanual.io/usage/types/#discriminated-unions), #619 by @PrettyWood +* [`Config.smart_union` for better union logic](https://pydantic-docs.helpmanual.io/usage/model_config/#smart-union), #2092 by @PrettyWood +* Binaries for Macos M1 CPUs, #3498 by @samuelcolvin +* Complex types can be set via [nested environment variables](https://pydantic-docs.helpmanual.io/usage/settings/#parsing-environment-variable-values), e.g. `foo___bar`, #3159 by @Air-Mark +* add a dark mode to _pydantic_ documentation, #2913 by @gbdlin +* Add support for autocomplete in VS Code via `__dataclass_transform__`, #2721 by @tiangolo + +### Changes + +* Add support for `Decimal`-specific validation configurations in `Field()`, additionally to using `condecimal()`, + to allow better support from editors and tooling, #3507 by @tiangolo +* Add `arm64` binaries suitable for MacOS with an M1 CPU to PyPI, #3498 by @samuelcolvin +* Fix issue where `None` was considered invalid when using a `Union` type containing `Any` or `object`, #3444 by @tharradine +* When generating field schema, pass optional `field` argument (of type + `pydantic.fields.ModelField`) to `__modify_schema__()` if present, #3434 by @jasujm +* Fix issue when pydantic fail to parse `typing.ClassVar` string type annotation, #3401 by @uriyyo +* Mention Python >= 3.9.2 as an alternative to `typing_extensions.TypedDict`, #3374 by @BvB93 +* Changed the validator method name in the [Custom Errors example](https://pydantic-docs.helpmanual.io/usage/models/#custom-errors) + to more accurately describe what the validator is doing; changed from `name_must_contain_space` to ` value_must_equal_bar`, #3327 by @michaelrios28 +* Add `AmqpDsn` class, #3254 by @kludex +* Always use `Enum` value as default in generated JSON schema, #3190 by @joaommartins +* Add support for Mypy 0.920, #3175 by @christianbundy +* `validate_arguments` now supports `extra` customization (used to always be `Extra.forbid`), #3161 by @PrettyWood +* Complex types can be set by nested environment variables, #3159 by @Air-Mark +* Fix mypy plugin to collect fields based on `pydantic.utils.is_valid_field` so that it ignores untyped private variables, #3146 by @hi-ogawa +* fix `validate_arguments` issue with `Config.validate_all`, #3135 by @PrettyWood +* avoid dict coercion when using dict subclasses as field type, #3122 by @PrettyWood +* add support for `object` type, #3062 by @PrettyWood +* Updates pydantic dataclasses to keep `_special` properties on parent classes, #3043 by @zulrang +* Add a `TypedDict` class for error objects, #3038 by @matthewhughes934 +* Fix support for using a subclass of an annotation as a default, #3018 by @JacobHayes +* make `create_model_from_typeddict` mypy compliant, #3008 by @PrettyWood +* Make multiple inheritance work when using `PrivateAttr`, #2989 by @hmvp +* Parse environment variables as JSON, if they have a `Union` type with a complex subfield, #2936 by @cbartz +* Prevent `StrictStr` permitting `Enum` values where the enum inherits from `str`, #2929 by @samuelcolvin +* Make `SecretsSettingsSource` 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 +* add a dark mode to _pydantic_ documentation, #2913 by @gbdlin +* Make `pydantic-mypy` plugin compatible with `pyproject.toml` configuration, consistent with `mypy` changes. + See the [doc](https://pydantic-docs.helpmanual.io/mypy_plugin/#configuring-the-plugin) for more information, #2908 by @jrwalk +* add python 3.10 support, #2885 by @PrettyWood +* Correctly parse generic models with `Json[T]`, #2860 by @geekingfrog +* Update contrib docs re: python version to use for building docs, #2856 by @paxcodes +* Clarify documentation about _pydantic_'s support for custom validation and strict type checking, + despite _pydantic_ being primarily a parsing library, #2855 by @paxcodes +* Fix schema generation for `Deque` fields, #2810 by @sergejkozin +* fix an edge case when mixing constraints and `Literal`, #2794 by @PrettyWood +* Fix postponed annotation resolution for `NamedTuple` and `TypedDict` when they're used directly as the type of fields + within Pydantic models, #2760 by @jameysharp +* Fix bug when `mypy` plugin fails on `construct` method call for `BaseSettings` derived classes, #2753 by @uriyyo +* Add function overloading for a `pydantic.create_model` function, #2748 by @uriyyo +* Fix mypy plugin issue with self field declaration, #2743 by @uriyyo +* The colon at the end of the line "The fields which were supplied when user was initialised:" suggests that the code following it is related. + Changed it to a period, #2733 by @krisaoe +* Renamed variable `schema` to `schema_` to avoid shadowing of global variable name, #2724 by @shahriyarr +* Add support for autocomplete in VS Code via `__dataclass_transform__`, #2721 by @tiangolo +* add missing type annotations in `BaseConfig` and handle `max_length = 0`, #2719 by @PrettyWood +* Change `orm_mode` checking to allow recursive ORM mode parsing with dicts, #2718 by @nuno-andre +* Add episode 313 of the *Talk Python To Me* podcast, where Michael Kennedy and Samuel Colvin discuss *pydantic*, to the docs, #2712 by @RatulMaharaj +* fix JSON schema generation when a field is of type `NamedTuple` and has a default value, #2707 by @PrettyWood +* `Enum` fields now properly support extra kwargs in schema generation, #2697 by @sammchardy +* Make serialization of referenced pydantic models possible, #2650 by @PrettyWood +* Add `uniqueItems` option to `ConstrainedList`, #2618 by @nuno-andre +* Try to evaluate forward refs automatically at model creation, #2588 by @uriyyo +* Switch docs preview and coverage display to use [smokeshow](https://smokeshow.helpmanual.io/), #2580 by @samuelcolvin +* Add `__version__` attribute to pydantic module, #2572 by @paxcodes +* Add `postgresql+asyncpg`, `postgresql+pg8000`, `postgresql+psycopg2`, `postgresql+psycopg2cffi`, `postgresql+py-postgresql` + and `postgresql+pygresql` schemes for `PostgresDsn`, #2567 by @postgres-asyncpg +* Enable the Hypothesis plugin to generate a constrained decimal when the `decimal_places` argument is specified, #2524 by @cwe5590 +* Allow `collections.abc.Callable` to be used as type in python 3.9, #2519 by @daviskirk +* Documentation update how to custom compile pydantic when using pip install, small change in `setup.py` + to allow for custom CFLAGS when compiling, #2517 by @peterroelants +* remove side effect of `default_factory` to run it only once even if `Config.validate_all` is set, #2515 by @PrettyWood +* Add lookahead to ip regexes for `AnyUrl` hosts. This allows urls with DNS labels + looking like IPs to validate as they are perfectly valid host names, #2512 by @sbv-csis +* Set `minItems` and `maxItems` in generated JSON schema for fixed-length tuples, #2497 by @PrettyWood +* Add `strict` argument to `conbytes`, #2489 by @koxudaxi +* Support user defined generic field types in generic models, #2465 by @daviskirk +* Add an example and a short explanation of subclassing `GetterDict` to docs, #2463 by @nuno-andre +* add `KafkaDsn` type, `HttpUrl` now has default port 80 for http and 443 for https, #2447 by @MihanixA +* Add `PastDate` and `FutureDate` types, #2425 by @Kludex +* Support generating schema for `Generic` fields with subtypes, #2375 by @maximberg +* fix(encoder): serialize `NameEmail` to str, #2341 by @alecgerona +* add `Config.smart_union` to prevent coercion in `Union` if possible, see + [the doc](https://pydantic-docs.helpmanual.io/usage/model_config/#smart-union) for more information, #2092 by @PrettyWood +* Add ability to use `typing.Counter` as a model field type, #2060 by @uriyyo +* Add parameterised subclasses to `__bases__` when constructing new parameterised classes, so that `A <: B => A[int] <: B[int]`, #2007 by @diabolo-dan +* Create `FileUrl` type that allows URLs that conform to [RFC 8089](https://tools.ietf.org/html/rfc8089#section-2). + Add `host_required` parameter, which is `True` by default (`AnyUrl` and subclasses), `False` in `RedisDsn`, `FileUrl`, #1983 by @vgerak +* add `confrozenset()`, analogous to `conset()` and `conlist()`, #1897 by @PrettyWood +* stop calling parent class `root_validator` if overridden, #1895 by @PrettyWood +* Add `repr` (defaults to `True`) parameter to `Field`, to hide it from the default representation of the `BaseModel`, #1831 by @fnep +* Accept empty query/fragment URL parts, #1807 by @xavier +* Add "exclude" as a field parameter so that it can be configured using model config instead of purely at `.dict` / `.json` export time, #660 by @daviskirk + ## v1.8.2 (2021-05-11) !!! warning diff --git a/changes/1807-xavier.md b/changes/1807-xavier.md deleted file mode 100644 index 59f1f3f..0000000 --- a/changes/1807-xavier.md +++ /dev/null @@ -1 +0,0 @@ -Accept empty query/fragment URL parts diff --git a/changes/1831-fnep.md b/changes/1831-fnep.md deleted file mode 100644 index 408022b..0000000 --- a/changes/1831-fnep.md +++ /dev/null @@ -1 +0,0 @@ -Add `repr` (defaults to `True`) parameter to `Field`, to hide it from the default representation of the `BaseModel`. diff --git a/changes/1895-PrettyWood.md b/changes/1895-PrettyWood.md deleted file mode 100644 index bd80647..0000000 --- a/changes/1895-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -stop calling parent class `root_validator` if overridden diff --git a/changes/1897-PrettyWood.md b/changes/1897-PrettyWood.md deleted file mode 100644 index b539418..0000000 --- a/changes/1897-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -add `confrozenset()`, analogous to `conset()` and `conlist()` diff --git a/changes/1983-vgerak.md b/changes/1983-vgerak.md deleted file mode 100644 index 61a4391..0000000 --- a/changes/1983-vgerak.md +++ /dev/null @@ -1,2 +0,0 @@ -Create `FileUrl` type that allows URLs that conform to [RFC 8089](https://tools.ietf.org/html/rfc8089#section-2). -Add `host_required` parameter, which is `True` by default (`AnyUrl` and subclasses), `False` in `RedisDsn`, `FileUrl`. diff --git a/changes/2007-diabolo-dan.md b/changes/2007-diabolo-dan.md deleted file mode 100644 index d79c056..0000000 --- a/changes/2007-diabolo-dan.md +++ /dev/null @@ -1 +0,0 @@ -Add parameterised subclasses to `__bases__` when constructing new parameterised classes, so that `A <: B => A[int] <: B[int]`. diff --git a/changes/2060-uriyyo.md b/changes/2060-uriyyo.md deleted file mode 100644 index cede2c1..0000000 --- a/changes/2060-uriyyo.md +++ /dev/null @@ -1 +0,0 @@ -Add ability to use `typing.Counter` as a model field type. \ No newline at end of file diff --git a/changes/2092-PrettyWood.md b/changes/2092-PrettyWood.md deleted file mode 100644 index a975710..0000000 --- a/changes/2092-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -add `Config.smart_union` to prevent coercion in `Union` if possible. See [the doc](https://pydantic-docs.helpmanual.io/usage/model_config/#smart-union) for more information diff --git a/changes/2341-alecgerona.md b/changes/2341-alecgerona.md deleted file mode 100644 index 4f8d69d..0000000 --- a/changes/2341-alecgerona.md +++ /dev/null @@ -1 +0,0 @@ -fix(encoder): serialize `NameEmail` to str diff --git a/changes/2375-maximberg.md b/changes/2375-maximberg.md deleted file mode 100644 index 0ad2958..0000000 --- a/changes/2375-maximberg.md +++ /dev/null @@ -1 +0,0 @@ -Support generating schema for `Generic` fields with subtypes. \ No newline at end of file diff --git a/changes/2425-Kludex.md b/changes/2425-Kludex.md deleted file mode 100644 index 0dde080..0000000 --- a/changes/2425-Kludex.md +++ /dev/null @@ -1 +0,0 @@ -Add `PastDate` and `FutureDate` types. diff --git a/changes/2447-MihanixA.md b/changes/2447-MihanixA.md deleted file mode 100644 index ea83cd1..0000000 --- a/changes/2447-MihanixA.md +++ /dev/null @@ -1,2 +0,0 @@ - - add `KafkaDsn` type - - `HttpUrl` now has default port 80 for http and 443 for https diff --git a/changes/2463-nuno-andre.md b/changes/2463-nuno-andre.md deleted file mode 100644 index 226760a..0000000 --- a/changes/2463-nuno-andre.md +++ /dev/null @@ -1 +0,0 @@ -Add an example and a short explanation of subclassing `GetterDict` to docs. \ No newline at end of file diff --git a/changes/2465-daviskirk.md b/changes/2465-daviskirk.md deleted file mode 100644 index da317c5..0000000 --- a/changes/2465-daviskirk.md +++ /dev/null @@ -1 +0,0 @@ -Support user defined generic field types in generic models. diff --git a/changes/2489-koxudaxi.md b/changes/2489-koxudaxi.md deleted file mode 100644 index 3de7d60..0000000 --- a/changes/2489-koxudaxi.md +++ /dev/null @@ -1 +0,0 @@ -Add `strict` argument to `conbytes`. diff --git a/changes/2497-PrettyWood.md b/changes/2497-PrettyWood.md deleted file mode 100644 index 0e28a96..0000000 --- a/changes/2497-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -Set `minItems` and `maxItems` in generated JSON schema for fixed-length tuples diff --git a/changes/2512-sbv-csis.md b/changes/2512-sbv-csis.md deleted file mode 100644 index 944b15e..0000000 --- a/changes/2512-sbv-csis.md +++ /dev/null @@ -1,2 +0,0 @@ -Add lookahead to ip regexes for `AnyUrl` hosts. This allows urls with DNS labels -looking like IPs to validate as they are perfectly valid host names. diff --git a/changes/2515-PrettyWood.md b/changes/2515-PrettyWood.md deleted file mode 100644 index 11d23a7..0000000 --- a/changes/2515-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -remove side effect of `default_factory` to run it only once even if `Config.validate_all` is set diff --git a/changes/2517-peterroelants.md b/changes/2517-peterroelants.md deleted file mode 100644 index 67eca39..0000000 --- a/changes/2517-peterroelants.md +++ /dev/null @@ -1 +0,0 @@ -Documentation update how to custom compile pydantic when using pip install, small change in `setup.py` to allow for custom CFLAGS when compiling. diff --git a/changes/2519-daviskirk.md b/changes/2519-daviskirk.md deleted file mode 100644 index 419646e..0000000 --- a/changes/2519-daviskirk.md +++ /dev/null @@ -1 +0,0 @@ -Allow `collections.abc.Callable` to be used as type in python 3.9. diff --git a/changes/2524-cwe5590.md b/changes/2524-cwe5590.md deleted file mode 100644 index e1927df..0000000 --- a/changes/2524-cwe5590.md +++ /dev/null @@ -1 +0,0 @@ -Enable the Hypothesis plugin to generate a constrained decimal when the `decimal_places` argument is specified. diff --git a/changes/2567-postgres-asyncpg.md b/changes/2567-postgres-asyncpg.md deleted file mode 100644 index fc63af8..0000000 --- a/changes/2567-postgres-asyncpg.md +++ /dev/null @@ -1 +0,0 @@ -Add `postgresql+asyncpg`, `postgresql+pg8000`, `postgresql+psycopg2`, `postgresql+psycopg2cffi`, `postgresql+py-postgresql` and `postgresql+pygresql` schemes for `PostgresDsn` diff --git a/changes/2572-paxcodes.md b/changes/2572-paxcodes.md deleted file mode 100644 index aacad15..0000000 --- a/changes/2572-paxcodes.md +++ /dev/null @@ -1 +0,0 @@ -Add `__version__` attribute to pydantic module. diff --git a/changes/2580-samuelcolvin.md b/changes/2580-samuelcolvin.md deleted file mode 100644 index 022b916..0000000 --- a/changes/2580-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Switch docs preview and coverage display to use [smokeshow](https://smokeshow.helpmanual.io/) diff --git a/changes/2588-uriyyo.md b/changes/2588-uriyyo.md deleted file mode 100644 index 938d282..0000000 --- a/changes/2588-uriyyo.md +++ /dev/null @@ -1 +0,0 @@ -Try to evaluate forward refs automatically at model creation. \ No newline at end of file diff --git a/changes/2618-nuno-andre.md b/changes/2618-nuno-andre.md deleted file mode 100644 index bf85227..0000000 --- a/changes/2618-nuno-andre.md +++ /dev/null @@ -1 +0,0 @@ -Add `uniqueItems` option to `ConstrainedList`. \ No newline at end of file diff --git a/changes/2650-PrettyWood.md b/changes/2650-PrettyWood.md deleted file mode 100644 index 61e3112..0000000 --- a/changes/2650-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -Make serialization of referenced pydantic models possible diff --git a/changes/2697-sammchardy.md b/changes/2697-sammchardy.md deleted file mode 100644 index 72ce6e0..0000000 --- a/changes/2697-sammchardy.md +++ /dev/null @@ -1 +0,0 @@ -`Enum` fields now properly support extra kwargs in schema generation \ No newline at end of file diff --git a/changes/2707-PrettyWood.md b/changes/2707-PrettyWood.md deleted file mode 100644 index 06d6db7..0000000 --- a/changes/2707-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -fix JSON schema generation when a field is of type `NamedTuple` and has a default value diff --git a/changes/2712-RatulMaharaj.md b/changes/2712-RatulMaharaj.md deleted file mode 100644 index 121343f..0000000 --- a/changes/2712-RatulMaharaj.md +++ /dev/null @@ -1 +0,0 @@ -Add episode 313 of the *Talk Python To Me* podcast, where Michael Kennedy and Samuel Colvin discuss *pydantic*, to the docs. \ No newline at end of file diff --git a/changes/2718-nuno-andre.md b/changes/2718-nuno-andre.md deleted file mode 100644 index 07aed05..0000000 --- a/changes/2718-nuno-andre.md +++ /dev/null @@ -1 +0,0 @@ -Change `orm_mode` checking to allow recursive ORM mode parsing with dicts. diff --git a/changes/2719-PrettyWood.md b/changes/2719-PrettyWood.md deleted file mode 100644 index 90a037c..0000000 --- a/changes/2719-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -add missing type annotations in `BaseConfig` and handle `max_length = 0` diff --git a/changes/2721-tiangolo.md b/changes/2721-tiangolo.md deleted file mode 100644 index a64f9c1..0000000 --- a/changes/2721-tiangolo.md +++ /dev/null @@ -1 +0,0 @@ -Add support for autocomplete in VS Code via `__dataclass_transform__` diff --git a/changes/2724-shahriyarr.md b/changes/2724-shahriyarr.md deleted file mode 100644 index 749c9e6..0000000 --- a/changes/2724-shahriyarr.md +++ /dev/null @@ -1 +0,0 @@ -Renamed variable `schema` to `schema_` to avoid shadowing of global variable name. diff --git a/changes/2733-krisaoe.md b/changes/2733-krisaoe.md deleted file mode 100644 index 0f1443e..0000000 --- a/changes/2733-krisaoe.md +++ /dev/null @@ -1,2 +0,0 @@ -The colon at the end of the line "The fields which were supplied when user was initialised:" suggests that the code following it is related. -Changed it to a period. \ No newline at end of file diff --git a/changes/2743-uriyyo.md b/changes/2743-uriyyo.md deleted file mode 100644 index 29d58aa..0000000 --- a/changes/2743-uriyyo.md +++ /dev/null @@ -1 +0,0 @@ -Fix mypy plugin issue with self field declaration. \ No newline at end of file diff --git a/changes/2748-uriyyo.md b/changes/2748-uriyyo.md deleted file mode 100644 index e1ede50..0000000 --- a/changes/2748-uriyyo.md +++ /dev/null @@ -1 +0,0 @@ -Add function overloading for a `pydantic.create_model` function. \ No newline at end of file diff --git a/changes/2753-uriyyo.md b/changes/2753-uriyyo.md deleted file mode 100644 index d1137db..0000000 --- a/changes/2753-uriyyo.md +++ /dev/null @@ -1 +0,0 @@ -Fix bug when `mypy` plugin fails on `construct` method call for `BaseSettings` derived classes. \ No newline at end of file diff --git a/changes/2760-jameysharp.md b/changes/2760-jameysharp.md deleted file mode 100644 index 8e70597..0000000 --- a/changes/2760-jameysharp.md +++ /dev/null @@ -1 +0,0 @@ -Fix postponed annotation resolution for `NamedTuple` and `TypedDict` when they're used directly as the type of fields within Pydantic models diff --git a/changes/2794-PrettyWood.md b/changes/2794-PrettyWood.md deleted file mode 100644 index c40b34b..0000000 --- a/changes/2794-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -fix an edge case when mixing constraints and `Literal` diff --git a/changes/2810-sergejkozin.md b/changes/2810-sergejkozin.md deleted file mode 100644 index c61dc6d..0000000 --- a/changes/2810-sergejkozin.md +++ /dev/null @@ -1 +0,0 @@ -Fix schema generation for `Deque` fields \ No newline at end of file diff --git a/changes/2855-paxcodes.md b/changes/2855-paxcodes.md deleted file mode 100644 index 1a49027..0000000 --- a/changes/2855-paxcodes.md +++ /dev/null @@ -1 +0,0 @@ -Clarify documentation about _pydantic_'s support for custom validation and strict type checking, despite _pydantic_ being primarily a parsing library. diff --git a/changes/2856-paxcodes.md b/changes/2856-paxcodes.md deleted file mode 100644 index 3592ee8..0000000 --- a/changes/2856-paxcodes.md +++ /dev/null @@ -1 +0,0 @@ -Update contrib docs re: python version to use for building docs. diff --git a/changes/2860-geekingfrog.md b/changes/2860-geekingfrog.md deleted file mode 100644 index f12de66..0000000 --- a/changes/2860-geekingfrog.md +++ /dev/null @@ -1 +0,0 @@ -Correctly parse generic models with `Json[T]`. diff --git a/changes/2885-PrettyWood.md b/changes/2885-PrettyWood.md deleted file mode 100644 index 1cc2afe..0000000 --- a/changes/2885-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -add python 3.10 support diff --git a/changes/2908-jrwalk.md b/changes/2908-jrwalk.md deleted file mode 100644 index 8a50965..0000000 --- a/changes/2908-jrwalk.md +++ /dev/null @@ -1 +0,0 @@ -Make `pydantic-mypy` plugin compatible with `pyproject.toml` configuration, consistent with `mypy` changes. See the [doc](https://pydantic-docs.helpmanual.io/mypy_plugin/#configuring-the-plugin) for more information. diff --git a/changes/2913-gbdlin.md b/changes/2913-gbdlin.md deleted file mode 100644 index bfd75db..0000000 --- a/changes/2913-gbdlin.md +++ /dev/null @@ -1 +0,0 @@ -add a dark mode to _pydantic_ documentation diff --git a/changes/2917-davidmreed.md b/changes/2917-davidmreed.md deleted file mode 100644 index 243781b..0000000 --- a/changes/2917-davidmreed.md +++ /dev/null @@ -1 +0,0 @@ -Make `SecretsSettingsSource` parse values being assigned to fields of complex types when sourced from a secrets file, just as when sourced from environment variables. diff --git a/changes/2929-samuelcolvin.md b/changes/2929-samuelcolvin.md deleted file mode 100644 index cb0e1d2..0000000 --- a/changes/2929-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Prevent `StrictStr` permitting `Enum` values where the enum inherits from `str`. diff --git a/changes/2936-cbartz.md b/changes/2936-cbartz.md deleted file mode 100644 index eabf91d..0000000 --- a/changes/2936-cbartz.md +++ /dev/null @@ -1 +0,0 @@ -Parse environment variables as JSON, if they have a `Union` type with a complex subfield. \ No newline at end of file diff --git a/changes/2989-hmvp.md b/changes/2989-hmvp.md deleted file mode 100644 index 7130d00..0000000 --- a/changes/2989-hmvp.md +++ /dev/null @@ -1 +0,0 @@ -Make multiple inheritance work when using `PrivateAttr` diff --git a/changes/3008-PrettyWood.md b/changes/3008-PrettyWood.md deleted file mode 100644 index df401a7..0000000 --- a/changes/3008-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -make `create_model_from_typeddict` mypy compliant diff --git a/changes/3018-JacobHayes.md b/changes/3018-JacobHayes.md deleted file mode 100644 index 3eb6ae9..0000000 --- a/changes/3018-JacobHayes.md +++ /dev/null @@ -1 +0,0 @@ -Fix support for using a subclass of an annotation as a default diff --git a/changes/3038-matthewhughes934.md b/changes/3038-matthewhughes934.md deleted file mode 100644 index 4d81bf1..0000000 --- a/changes/3038-matthewhughes934.md +++ /dev/null @@ -1 +0,0 @@ -Add a `TypedDict` class for error objects diff --git a/changes/3043-zulrang.md b/changes/3043-zulrang.md deleted file mode 100644 index 085fa83..0000000 --- a/changes/3043-zulrang.md +++ /dev/null @@ -1 +0,0 @@ -Updates pydantic dataclasses to keep _special properties on parent classes diff --git a/changes/3062-PrettyWood.md b/changes/3062-PrettyWood.md deleted file mode 100644 index b330545..0000000 --- a/changes/3062-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -add support for `object` type diff --git a/changes/3122-PrettyWood.md b/changes/3122-PrettyWood.md deleted file mode 100644 index b9dc1c2..0000000 --- a/changes/3122-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -avoid dict coercion when using dict subclasses as field type \ No newline at end of file diff --git a/changes/3135-PrettyWood.md b/changes/3135-PrettyWood.md deleted file mode 100644 index 643e1f5..0000000 --- a/changes/3135-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -fix `validate_arguments` issue with `Config.validate_all` diff --git a/changes/3146-hi-ogawa.md b/changes/3146-hi-ogawa.md deleted file mode 100644 index d0f3cb4..0000000 --- a/changes/3146-hi-ogawa.md +++ /dev/null @@ -1 +0,0 @@ -Fix mypy plugin to collect fields based on `pydantic.utils.is_valid_field` so that it ignores untyped private variables diff --git a/changes/3159-Air-Mark.md b/changes/3159-Air-Mark.md deleted file mode 100644 index 1677fd0..0000000 --- a/changes/3159-Air-Mark.md +++ /dev/null @@ -1 +0,0 @@ -Nested env variables can now be configured regarding the `env_nested_delimiter` diff --git a/changes/3161-PrettyWood.md b/changes/3161-PrettyWood.md deleted file mode 100644 index 3e037e5..0000000 --- a/changes/3161-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -`validate_arguments` now supports `extra` customization (used to always be `Extra.forbid`) \ No newline at end of file diff --git a/changes/3175-christianbundy.md b/changes/3175-christianbundy.md deleted file mode 100644 index 3faf22e..0000000 --- a/changes/3175-christianbundy.md +++ /dev/null @@ -1 +0,0 @@ -Add support for Mypy 0.920 diff --git a/changes/3190-joaommartins.md b/changes/3190-joaommartins.md deleted file mode 100644 index 74af4f1..0000000 --- a/changes/3190-joaommartins.md +++ /dev/null @@ -1 +0,0 @@ -Always use `Enum` value as default in generated JSON schema. \ No newline at end of file diff --git a/changes/3254-kludex.md b/changes/3254-kludex.md deleted file mode 100644 index d86e688..0000000 --- a/changes/3254-kludex.md +++ /dev/null @@ -1 +0,0 @@ -Add `AmqpDsn` class diff --git a/changes/3327-michaelrios28.md b/changes/3327-michaelrios28.md deleted file mode 100644 index 30aeb5b..0000000 --- a/changes/3327-michaelrios28.md +++ /dev/null @@ -1 +0,0 @@ -Changed the validator method name in the [Custom Errors example](https://pydantic-docs.helpmanual.io/usage/models/#custom-errors) to more accurately describe what the validator is doing; changed from `name_must_contain_space` to ` value_must_equal_bar`. diff --git a/changes/3374-BvB93.md b/changes/3374-BvB93.md deleted file mode 100644 index 340c6ef..0000000 --- a/changes/3374-BvB93.md +++ /dev/null @@ -1 +0,0 @@ -Mention Python >= 3.9.2 as an alternative to `typing_extensions.TypedDict`. diff --git a/changes/3401-uriyyo.md b/changes/3401-uriyyo.md deleted file mode 100644 index 7b46117..0000000 --- a/changes/3401-uriyyo.md +++ /dev/null @@ -1 +0,0 @@ -Fix issue when pydantic fail to parse `typing.ClassVar` string type annotation. \ No newline at end of file diff --git a/changes/3434-jasujm.md b/changes/3434-jasujm.md deleted file mode 100644 index bd93d66..0000000 --- a/changes/3434-jasujm.md +++ /dev/null @@ -1,2 +0,0 @@ -When generating field schema, pass optional `field` argument (of type -`pydantic.fields.ModelField`) to `__modify_schema__()` if present diff --git a/changes/3444-tharradine.md b/changes/3444-tharradine.md deleted file mode 100644 index 6c9047c..0000000 --- a/changes/3444-tharradine.md +++ /dev/null @@ -1 +0,0 @@ -Fix issue where `None` was considered invalid when using a `Union` type containing `Any` or `object` \ No newline at end of file diff --git a/changes/3498-samuelcolvin.md b/changes/3498-samuelcolvin.md deleted file mode 100644 index 6de5886..0000000 --- a/changes/3498-samuelcolvin.md +++ /dev/null @@ -1 +0,0 @@ -Add `arm64` binaries suitable for MacOS with an M1 CPU to PyPI diff --git a/changes/3507-tiangolo.md b/changes/3507-tiangolo.md deleted file mode 100644 index 95185be..0000000 --- a/changes/3507-tiangolo.md +++ /dev/null @@ -1 +0,0 @@ -Add support for `Decimal`-specific validation configurations in `Field()`, additionally to using `condecimal()`, to allow better suppport from editors and tooling \ No newline at end of file diff --git a/changes/619-PrettyWood.md b/changes/619-PrettyWood.md deleted file mode 100644 index 929bfbf..0000000 --- a/changes/619-PrettyWood.md +++ /dev/null @@ -1 +0,0 @@ -Add a discriminated union. See [the doc](https://pydantic-docs.helpmanual.io/usage/types/#discriminated-unions) for more information. \ No newline at end of file diff --git a/changes/660-daviskirk.md b/changes/660-daviskirk.md deleted file mode 100644 index 8076b02..0000000 --- a/changes/660-daviskirk.md +++ /dev/null @@ -1 +0,0 @@ -Add "exclude" as a field parameter so that it can be configured using model config instead of purely at `.dict` / `.json` export time. diff --git a/pydantic/version.py b/pydantic/version.py index 55cb751..a16a7c0 100644 --- a/pydantic/version.py +++ b/pydantic/version.py @@ -1,6 +1,6 @@ __all__ = 'VERSION', 'version_info' -VERSION = '1.8.2' +VERSION = '1.9.0a1' def version_info() -> str: