Closed renovate[bot] closed 2 years ago
βοΈ Deploy Preview for python-playground ready!
π¨ Explore the source changes: e1d7deafbc5cf81da5cc5bfbc911ff798d764006
π Inspect the deploy log: https://app.netlify.com/sites/python-playground/deploys/61d2582ca7594300075357ad
π Browse the preview: https://deploy-preview-92--python-playground.netlify.app/
This PR contains the following updates:
^12.1.4
->^12.1.5
==1.8.2
->==1.9.0
^2.7.8
->^2.7.10
^3.4.1
->^3.4.2
Release Notes
okonet/lint-staged
### [`v12.1.5`](https://togithub.com/okonet/lint-staged/releases/v12.1.5) [Compare Source](https://togithub.com/okonet/lint-staged/compare/v12.1.4...v12.1.5) ##### Bug Fixes - search configuration starting from explicit cwd option ([c7ea359](https://togithub.com/okonet/lint-staged/commit/c7ea3594c81f7c2724a7babc8e8d57926b4679c8)) - using `--debug` option enables debug mode ([5cceeb6](https://togithub.com/okonet/lint-staged/commit/5cceeb65630752b646047ae88cacc48b76758f1c))samuelcolvin/pydantic
### [`v1.9.0`](https://togithub.com/samuelcolvin/pydantic/blob/HEAD/HISTORY.md#v190-2021-12-31) [Compare Source](https://togithub.com/samuelcolvin/pydantic/compare/v1.8.2...v1.9.0) Thank you to pydantic's sponsors: [@sthagen](https://togithub.com/sthagen), [@timdrijvers](https://togithub.com/timdrijvers), [@toinbis](https://togithub.com/toinbis), [@koxudaxi](https://togithub.com/koxudaxi), [@ginomempin](https://togithub.com/ginomempin), [@primer-io](https://togithub.com/primer-io), [@and-semakin](https://togithub.com/and-semakin), [@westonsteimel](https://togithub.com/westonsteimel), [@reillysiemens](https://togithub.com/reillysiemens), [@es3n1n](https://togithub.com/es3n1n), [@jokull](https://togithub.com/jokull), [@JonasKs](https://togithub.com/JonasKs), [@Rehket](https://togithub.com/Rehket), [@corleyma](https://togithub.com/corleyma), [@daddycocoaman](https://togithub.com/daddycocoaman), [@hardbyte](https://togithub.com/hardbyte), [@datarootsio](https://togithub.com/datarootsio), [@jodal](https://togithub.com/jodal), [@aminalaee](https://togithub.com/aminalaee), [@rafsaf](https://togithub.com/rafsaf), [@jqueguiner](https://togithub.com/jqueguiner), [@chdsbd](https://togithub.com/chdsbd), [@kevinalh](https://togithub.com/kevinalh), [@Mazyod](https://togithub.com/Mazyod), [@grillazz](https://togithub.com/grillazz), [@JonasKs](https://togithub.com/JonasKs), [@simw](https://togithub.com/simw), [@leynier](https://togithub.com/leynier), [@xfenix](https://togithub.com/xfenix) for their kind support. ##### Highlights - add python 3.10 support, [#2885](https://togithub.com/samuelcolvin/pydantic/issues/2885) by [@PrettyWood](https://togithub.com/PrettyWood) - [Discriminated unions](https://pydantic-docs.helpmanual.io/usage/types/#discriminated-unions-aka-tagged-unions), [#619](https://togithub.com/samuelcolvin/pydantic/issues/619) by [@PrettyWood](https://togithub.com/PrettyWood) - [`Config.smart_union` for better union logic](https://pydantic-docs.helpmanual.io/usage/model_config/#smart-union), [#2092](https://togithub.com/samuelcolvin/pydantic/issues/2092) by [@PrettyWood](https://togithub.com/PrettyWood) - Binaries for Macos M1 CPUs, [#3498](https://togithub.com/samuelcolvin/pydantic/issues/3498) by [@samuelcolvin](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/3159) by [@Air-Mark](https://togithub.com/Air-Mark) - add a dark mode to *pydantic* documentation, [#2913](https://togithub.com/samuelcolvin/pydantic/issues/2913) by [@gbdlin](https://togithub.com/gbdlin) - Add support for autocomplete in VS Code via `__dataclass_transform__`, [#2721](https://togithub.com/samuelcolvin/pydantic/issues/2721) by [@tiangolo](https://togithub.com/tiangolo) - Add "exclude" as a field parameter so that it can be configured using model config, [#660](https://togithub.com/samuelcolvin/pydantic/issues/660) by [@daviskirk](https://togithub.com/daviskirk) ##### v1.9.0 (2021-12-31) Changes - Apply `update_forward_refs` to `Config.json_encodes` prevent name clashes in types defined via strings, [#3583](https://togithub.com/samuelcolvin/pydantic/issues/3583) by [@samuelcolvin](https://togithub.com/samuelcolvin) - Extend pydantic's mypy plugin to support mypy versions `0.910`, `0.920`, `0.921` & `0.930`, [#3573](https://togithub.com/samuelcolvin/pydantic/issues/3573) & [#3594](https://togithub.com/samuelcolvin/pydantic/issues/3594) by [@PrettyWood](https://togithub.com/PrettyWood), [@christianbundy](https://togithub.com/christianbundy), [@samuelcolvin](https://togithub.com/samuelcolvin) ##### v1.9.0a2 (2021-12-24) Changes - support generic models with discriminated union, [#3551](https://togithub.com/samuelcolvin/pydantic/issues/3551) by [@PrettyWood](https://togithub.com/PrettyWood) - keep old behaviour of `json()` by default, [#3542](https://togithub.com/samuelcolvin/pydantic/issues/3542) by [@PrettyWood](https://togithub.com/PrettyWood) - Removed typing-only `__root__` attribute from `BaseModel`, [#3540](https://togithub.com/samuelcolvin/pydantic/issues/3540) by [@layday](https://togithub.com/layday) - Build Python 3.10 wheels, [#3539](https://togithub.com/samuelcolvin/pydantic/issues/3539) by [@mbachry](https://togithub.com/mbachry) - Fix display of `extra` fields with model `__repr__`, [#3234](https://togithub.com/samuelcolvin/pydantic/issues/3234) by [@cocolman](https://togithub.com/cocolman) - models copied via `Config.copy_on_model_validation` always have all fields, [#3201](https://togithub.com/samuelcolvin/pydantic/issues/3201) by [@PrettyWood](https://togithub.com/PrettyWood) - nested ORM from nested dictionaries, [#3182](https://togithub.com/samuelcolvin/pydantic/issues/3182) by [@PrettyWood](https://togithub.com/PrettyWood) - fix link to discriminated union section by [@PrettyWood](https://togithub.com/PrettyWood) ##### v1.9.0a1 (2021-12-18) Changes - Add support for `Decimal`-specific validation configurations in `Field()`, additionally to using `condecimal()`, to allow better support from editors and tooling, [#3507](https://togithub.com/samuelcolvin/pydantic/issues/3507) by [@tiangolo](https://togithub.com/tiangolo) - Add `arm64` binaries suitable for MacOS with an M1 CPU to PyPI, [#3498](https://togithub.com/samuelcolvin/pydantic/issues/3498) by [@samuelcolvin](https://togithub.com/samuelcolvin) - Fix issue where `None` was considered invalid when using a `Union` type containing `Any` or `object`, [#3444](https://togithub.com/samuelcolvin/pydantic/issues/3444) by [@tharradine](https://togithub.com/tharradine) - When generating field schema, pass optional `field` argument (of type `pydantic.fields.ModelField`) to `__modify_schema__()` if present, [#3434](https://togithub.com/samuelcolvin/pydantic/issues/3434) by [@jasujm](https://togithub.com/jasujm) - Fix issue when pydantic fail to parse `typing.ClassVar` string type annotation, [#3401](https://togithub.com/samuelcolvin/pydantic/issues/3401) by [@uriyyo](https://togithub.com/uriyyo) - Mention Python >= 3.9.2 as an alternative to `typing_extensions.TypedDict`, [#3374](https://togithub.com/samuelcolvin/pydantic/issues/3374) by [@BvB93](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/3327) by [@michaelrios28](https://togithub.com/michaelrios28) - Add `AmqpDsn` class, [#3254](https://togithub.com/samuelcolvin/pydantic/issues/3254) by [@kludex](https://togithub.com/kludex) - Always use `Enum` value as default in generated JSON schema, [#3190](https://togithub.com/samuelcolvin/pydantic/issues/3190) by [@joaommartins](https://togithub.com/joaommartins) - Add support for Mypy 0.920, [#3175](https://togithub.com/samuelcolvin/pydantic/issues/3175) by [@christianbundy](https://togithub.com/christianbundy) - `validate_arguments` now supports `extra` customization (used to always be `Extra.forbid`), [#3161](https://togithub.com/samuelcolvin/pydantic/issues/3161) by [@PrettyWood](https://togithub.com/PrettyWood) - Complex types can be set by nested environment variables, [#3159](https://togithub.com/samuelcolvin/pydantic/issues/3159) by [@Air-Mark](https://togithub.com/Air-Mark) - Fix mypy plugin to collect fields based on `pydantic.utils.is_valid_field` so that it ignores untyped private variables, [#3146](https://togithub.com/samuelcolvin/pydantic/issues/3146) by [@hi-ogawa](https://togithub.com/hi-ogawa) - fix `validate_arguments` issue with `Config.validate_all`, [#3135](https://togithub.com/samuelcolvin/pydantic/issues/3135) by [@PrettyWood](https://togithub.com/PrettyWood) - avoid dict coercion when using dict subclasses as field type, [#3122](https://togithub.com/samuelcolvin/pydantic/issues/3122) by [@PrettyWood](https://togithub.com/PrettyWood) - add support for `object` type, [#3062](https://togithub.com/samuelcolvin/pydantic/issues/3062) by [@PrettyWood](https://togithub.com/PrettyWood) - Updates pydantic dataclasses to keep `_special` properties on parent classes, [#3043](https://togithub.com/samuelcolvin/pydantic/issues/3043) by [@zulrang](https://togithub.com/zulrang) - Add a `TypedDict` class for error objects, [#3038](https://togithub.com/samuelcolvin/pydantic/issues/3038) by [@matthewhughes934](https://togithub.com/matthewhughes934) - Fix support for using a subclass of an annotation as a default, [#3018](https://togithub.com/samuelcolvin/pydantic/issues/3018) by [@JacobHayes](https://togithub.com/JacobHayes) - make `create_model_from_typeddict` mypy compliant, [#3008](https://togithub.com/samuelcolvin/pydantic/issues/3008) by [@PrettyWood](https://togithub.com/PrettyWood) - Make multiple inheritance work when using `PrivateAttr`, [#2989](https://togithub.com/samuelcolvin/pydantic/issues/2989) by [@hmvp](https://togithub.com/hmvp) - Parse environment variables as JSON, if they have a `Union` type with a complex subfield, [#2936](https://togithub.com/samuelcolvin/pydantic/issues/2936) by [@cbartz](https://togithub.com/cbartz) - Prevent `StrictStr` permitting `Enum` values where the enum inherits from `str`, [#2929](https://togithub.com/samuelcolvin/pydantic/issues/2929) by [@samuelcolvin](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/2917) by [@davidmreed](https://togithub.com/davidmreed) - add a dark mode to *pydantic* documentation, [#2913](https://togithub.com/samuelcolvin/pydantic/issues/2913) by [@gbdlin](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/2908) by [@jrwalk](https://togithub.com/jrwalk) - add python 3.10 support, [#2885](https://togithub.com/samuelcolvin/pydantic/issues/2885) by [@PrettyWood](https://togithub.com/PrettyWood) - Correctly parse generic models with `Json[T]`, [#2860](https://togithub.com/samuelcolvin/pydantic/issues/2860) by [@geekingfrog](https://togithub.com/geekingfrog) - Update contrib docs re: python version to use for building docs, [#2856](https://togithub.com/samuelcolvin/pydantic/issues/2856) by [@paxcodes](https://togithub.com/paxcodes) - Clarify documentation about *pydantic*'s support for custom validation and strict type checking, despite *pydantic* being primarily a parsing library, [#2855](https://togithub.com/samuelcolvin/pydantic/issues/2855) by [@paxcodes](https://togithub.com/paxcodes) - Fix schema generation for `Deque` fields, [#2810](https://togithub.com/samuelcolvin/pydantic/issues/2810) by [@sergejkozin](https://togithub.com/sergejkozin) - fix an edge case when mixing constraints and `Literal`, [#2794](https://togithub.com/samuelcolvin/pydantic/issues/2794) by [@PrettyWood](https://togithub.com/PrettyWood) - Fix postponed annotation resolution for `NamedTuple` and `TypedDict` when they're used directly as the type of fields within Pydantic models, [#2760](https://togithub.com/samuelcolvin/pydantic/issues/2760) by [@jameysharp](https://togithub.com/jameysharp) - Fix bug when `mypy` plugin fails on `construct` method call for `BaseSettings` derived classes, [#2753](https://togithub.com/samuelcolvin/pydantic/issues/2753) by [@uriyyo](https://togithub.com/uriyyo) - Add function overloading for a `pydantic.create_model` function, [#2748](https://togithub.com/samuelcolvin/pydantic/issues/2748) by [@uriyyo](https://togithub.com/uriyyo) - Fix mypy plugin issue with self field declaration, [#2743](https://togithub.com/samuelcolvin/pydantic/issues/2743) by [@uriyyo](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/2733) by [@krisaoe](https://togithub.com/krisaoe) - Renamed variable `schema` to `schema_` to avoid shadowing of global variable name, [#2724](https://togithub.com/samuelcolvin/pydantic/issues/2724) by [@shahriyarr](https://togithub.com/shahriyarr) - Add support for autocomplete in VS Code via `__dataclass_transform__`, [#2721](https://togithub.com/samuelcolvin/pydantic/issues/2721) by [@tiangolo](https://togithub.com/tiangolo) - add missing type annotations in `BaseConfig` and handle `max_length = 0`, [#2719](https://togithub.com/samuelcolvin/pydantic/issues/2719) by [@PrettyWood](https://togithub.com/PrettyWood) - Change `orm_mode` checking to allow recursive ORM mode parsing with dicts, [#2718](https://togithub.com/samuelcolvin/pydantic/issues/2718) by [@nuno-andre](https://togithub.com/nuno-andre) - Add episode 313 of the *Talk Python To Me* podcast, where Michael Kennedy and Samuel Colvin discuss *pydantic*, to the docs, [#2712](https://togithub.com/samuelcolvin/pydantic/issues/2712) by [@RatulMaharaj](https://togithub.com/RatulMaharaj) - fix JSON schema generation when a field is of type `NamedTuple` and has a default value, [#2707](https://togithub.com/samuelcolvin/pydantic/issues/2707) by [@PrettyWood](https://togithub.com/PrettyWood) - `Enum` fields now properly support extra kwargs in schema generation, [#2697](https://togithub.com/samuelcolvin/pydantic/issues/2697) by [@sammchardy](https://togithub.com/sammchardy) - Make serialization of referenced pydantic models possible, [#2650](https://togithub.com/samuelcolvin/pydantic/issues/2650) by [@PrettyWood](https://togithub.com/PrettyWood) - Add `uniqueItems` option to `ConstrainedList`, [#2618](https://togithub.com/samuelcolvin/pydantic/issues/2618) by [@nuno-andre](https://togithub.com/nuno-andre) - Try to evaluate forward refs automatically at model creation, [#2588](https://togithub.com/samuelcolvin/pydantic/issues/2588) by [@uriyyo](https://togithub.com/uriyyo) - Switch docs preview and coverage display to use [smokeshow](https://smokeshow.helpmanual.io/), [#2580](https://togithub.com/samuelcolvin/pydantic/issues/2580) by [@samuelcolvin](https://togithub.com/samuelcolvin) - Add `__version__` attribute to pydantic module, [#2572](https://togithub.com/samuelcolvin/pydantic/issues/2572) by [@paxcodes](https://togithub.com/paxcodes) - Add `postgresql+asyncpg`, `postgresql+pg8000`, `postgresql+psycopg2`, `postgresql+psycopg2cffi`, `postgresql+py-postgresql` and `postgresql+pygresql` schemes for `PostgresDsn`, [#2567](https://togithub.com/samuelcolvin/pydantic/issues/2567) by [@postgres-asyncpg](https://togithub.com/postgres-asyncpg) - Enable the Hypothesis plugin to generate a constrained decimal when the `decimal_places` argument is specified, [#2524](https://togithub.com/samuelcolvin/pydantic/issues/2524) by [@cwe5590](https://togithub.com/cwe5590) - Allow `collections.abc.Callable` to be used as type in python 3.9, [#2519](https://togithub.com/samuelcolvin/pydantic/issues/2519) by [@daviskirk](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/2517) by [@peterroelants](https://togithub.com/peterroelants) - remove side effect of `default_factory` to run it only once even if `Config.validate_all` is set, [#2515](https://togithub.com/samuelcolvin/pydantic/issues/2515) by [@PrettyWood](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/2512) by [@sbv-csis](https://togithub.com/sbv-csis) - Set `minItems` and `maxItems` in generated JSON schema for fixed-length tuples, [#2497](https://togithub.com/samuelcolvin/pydantic/issues/2497) by [@PrettyWood](https://togithub.com/PrettyWood) - Add `strict` argument to `conbytes`, [#2489](https://togithub.com/samuelcolvin/pydantic/issues/2489) by [@koxudaxi](https://togithub.com/koxudaxi) - Support user defined generic field types in generic models, [#2465](https://togithub.com/samuelcolvin/pydantic/issues/2465) by [@daviskirk](https://togithub.com/daviskirk) - Add an example and a short explanation of subclassing `GetterDict` to docs, [#2463](https://togithub.com/samuelcolvin/pydantic/issues/2463) by [@nuno-andre](https://togithub.com/nuno-andre) - add `KafkaDsn` type, `HttpUrl` now has default port 80 for http and 443 for https, [#2447](https://togithub.com/samuelcolvin/pydantic/issues/2447) by [@MihanixA](https://togithub.com/MihanixA) - Add `PastDate` and `FutureDate` types, [#2425](https://togithub.com/samuelcolvin/pydantic/issues/2425) by [@Kludex](https://togithub.com/Kludex) - Support generating schema for `Generic` fields with subtypes, [#2375](https://togithub.com/samuelcolvin/pydantic/issues/2375) by [@maximberg](https://togithub.com/maximberg) - fix(encoder): serialize `NameEmail` to str, [#2341](https://togithub.com/samuelcolvin/pydantic/issues/2341) by [@alecgerona](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/2092) by [@PrettyWood](https://togithub.com/PrettyWood) - Add ability to use `typing.Counter` as a model field type, [#2060](https://togithub.com/samuelcolvin/pydantic/issues/2060) by [@uriyyo](https://togithub.com/uriyyo) - Add parameterised subclasses to `__bases__` when constructing new parameterised classes, so that `A <: B => A[int] <: B[int]`, [#2007](https://togithub.com/samuelcolvin/pydantic/issues/2007) by [@diabolo-dan](https://togithub.com/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](https://togithub.com/samuelcolvin/pydantic/issues/1983) by [@vgerak](https://togithub.com/vgerak) - add `confrozenset()`, analogous to `conset()` and `conlist()`, [#1897](https://togithub.com/samuelcolvin/pydantic/issues/1897) by [@PrettyWood](https://togithub.com/PrettyWood) - stop calling parent class `root_validator` if overridden, [#1895](https://togithub.com/samuelcolvin/pydantic/issues/1895) by [@PrettyWood](https://togithub.com/PrettyWood) - Add `repr` (defaults to `True`) parameter to `Field`, to hide it from the default representation of the `BaseModel`, [#1831](https://togithub.com/samuelcolvin/pydantic/issues/1831) by [@fnep](https://togithub.com/fnep) - Accept empty query/fragment URL parts, [#1807](https://togithub.com/samuelcolvin/pydantic/issues/1807) by [@xavier](https://togithub.com/xavier)vitejs/vite
### [`v2.7.10`](https://togithub.com/vitejs/vite/releases/v2.7.10) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.9...v2.7.10) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v2.7.10/packages/vite/CHANGELOG.md) for details. ### [`v2.7.9`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#279-httpsgithubcomvitejsvitecomparev278v279-2021-12-28) [Compare Source](https://togithub.com/vitejs/vite/compare/v2.7.8...v2.7.9)windicss/windicss
### [`v3.4.2`](https://togithub.com/windicss/windicss/releases/v3.4.2) [Compare Source](https://togithub.com/windicss/windicss/compare/v3.4.1...v3.4.2) ##### Features - add '.accent-x' utility class ([#637](https://togithub.com/windicss/windicss/issues/637)) ([4fc1ede](https://togithub.com/windicss/windicss/commit/4fc1ede)) - add 'file:' variant ([#636](https://togithub.com/windicss/windicss/issues/636)) ([9529357](https://togithub.com/windicss/windicss/commit/9529357)) - add 'marker:' variant ([#635](https://togithub.com/windicss/windicss/issues/635)) ([ff6f698](https://togithub.com/windicss/windicss/commit/ff6f698))Configuration
π Schedule: "before 3am on Monday" (UTC).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π» Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by WhiteSource Renovate. View repository job log here.