6 research outputs found

    pydantic/pydantic: v2.6.1 2024-02-05

    No full text
    <h2>v2.6.1 (2024-02-05)</h2> <h3>What's Changed</h3> <h4>Packaging</h4> <ul> <li>Upgrade to <code>pydantic-core</code> 2.16.2 by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8717">#8717</a></li> </ul> <h4>Fixes</h4> <ul> <li>Fix bug with <code>mypy</code> plugin and <code>no_strict_optional = True</code> by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8666">#8666</a></li> <li>Fix <code>ByteSize</code> error <code>type</code> change by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8681">#8681</a></li> <li>Fix inheriting <code>Field</code> annotations in dataclasses by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8679">#8679</a></li> <li>Fix regression in core schema generation for indirect definition references by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8702">#8702</a></li> <li>Fix unsupported types bug with <code>PlainValidator</code> by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8710">#8710</a></li> <li>Reverting problematic fix from 2.6 release, fixing schema building bug by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8718">#8718</a></li> <li>Fix warning for tuple of wrong size in <code>Union</code> by @davidhewitt in <a href="https://github.com/pydantic/pydantic-core/pull/1174">pydantic/pydantic-core#1174</a></li> <li>Fix <code>computed_field</code> JSON serializer <code>exclude_none</code> behavior by @sydney-runkle in <a href="https://github.com/pydantic/pydantic-core/pull/1187">pydantic/pydantic-core#1187</a></li> </ul> <p>Full Changelog: https://github.com/pydantic/pydantic/compare/v2.6.0...v2.6.1/</p&gt

    pydantic/pydantic: v2.5.2 2023-11-22

    No full text
    <h2>v2.5.2 (2023-11-22)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.5.2">GitHub release</a></p> <h3>What's Changed</h3> <h4>Packaging</h4> <ul> <li>uprev <code>pydantic-core</code> to 2.14.5</li> </ul> <h4>New Features</h4> <ul> <li>Add <code>ConfigDict.ser_json_inf_nan</code> by @davidhewitt in <a href="https://github.com/pydantic/pydantic/pull/8159">#8159</a></li> </ul> <h4>Fixes</h4> <ul> <li>Fix validation of <code>Literal</code> from JSON keys when used as <code>dict</code> key by @sydney-runkle in <a href="https://github.com/pydantic/pydantic-core/pull/1075">pydantic/pydantic-core#1075</a></li> <li>Fix bug re <code>custom_init</code> on members of <code>Union</code> by @sydney-runkle in <a href="https://github.com/pydantic/pydantic-core/pull/1076">pydantic/pydantic-core#1076</a></li> <li>Fix <code>JsonValue</code> <code>bool</code> serialization by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8159">#8190</a></li> <li>Fix handling of unhashable inputs with <code>Literal</code> in <code>Union</code>s by @sydney-runkle in <a href="https://github.com/pydantic/pydantic-core/pull/1089">pydantic/pydantic-core#1089</a></li> </ul> <p>https://github.com/pydantic/pydantic/compare/v2.5.1...v2.5.2/</p&gt

    pydantic/pydantic: v2.6.0b1 2024-01-19

    No full text
    <h3>What's Changed</h3> <h4>Packaging</h4> <ul> <li>Check for <code>email-validator</code> version >= 2.0 by @commonism in <a href="https://github.com/pydantic/pydantic/pull/6033">#6033</a></li> <li>Upgrade `ruff`` target version to Python 3.8 by @Elkiwa in <a href="https://github.com/pydantic/pydantic/pull/8341">#8341</a></li> <li>Update to <code>pydantic-extra-types==2.4.1</code> by @yezz123 in <a href="https://github.com/pydantic/pydantic/pull/8478">#8478</a></li> <li>Update to <code>pyright==1.1.345</code> by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8453">#8453</a></li> <li>Update pydantic-core from 2.14.6 to 2.16.1, significant changes from these updates are described below, full changelog <a href="https://github.com/pydantic/pydantic-core/compare/v2.14.6...v2.16.1">here</a></li> </ul> <h4>New Features</h4> <ul> <li>Add <code>NatsDsn</code> by @ekeew in <a href="https://github.com/pydantic/pydantic/pull/6874">#6874</a></li> <li>Add <code>ConfigDict.ser_json_inf_nan</code> by @davidhewitt in <a href="https://github.com/pydantic/pydantic/pull/8159">#8159</a></li> <li>Add <code>types.OnErrorOmit</code> by @adriangb in <a href="https://github.com/pydantic/pydantic/pull/8222">#8222</a></li> <li>Support <code>AliasGenerator</code> usage by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8282">#8282</a></li> <li>Add Pydantic People Page to docs by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8345">#8345</a></li> <li>Support <code>yyyy-MM-DD</code> datetime parsing by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8404">#8404</a></li> <li>Added bits conversions to the <code>ByteSize</code> class #8415 by @luca-matei in <a href="https://github.com/pydantic/pydantic/pull/8507">#8507</a></li> <li>Enable json schema creation with type <code>ByteSize</code> by @geospackle in <a href="https://github.com/pydantic/pydantic/pull/8537">#8537</a></li> <li>Add <code>eval_type_backport</code> to handle union operator and builtin generic subscripting in older Pythons by @alexmojaki in <a href="https://github.com/pydantic/pydantic/pull/8209">#8209</a></li> <li>Add support for <code>dataclass</code> fields <code>init</code> by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8552">#8552</a></li> <li>Implement pickling for <code>ValidationError</code> by @davidhewitt in <a href="https://github.com/pydantic/pydantic-core/pull/1119">pydantic/pydantic-core#1119</a></li> <li>Add unified tuple validator that can handle "variadic" tuples via PEP-646 by @dmontagu in <a href="https://github.com/pydantic/pydantic-core/pull/865">pydantic/pydantic-core#865</a></li> </ul> <h4>Changes</h4> <ul> <li>Drop Python3.7 support by @hramezani in <a href="https://github.com/pydantic/pydantic/pull/7188">#7188</a></li> <li>Drop Python 3.7, and PyPy 3.7 and 3.8 by @davidhewitt in <a href="https://github.com/pydantic/pydantic-core/pull/1129">pydantic/pydantic-core#1129</a></li> <li>Use positional-only <code>self</code> in <code>BaseModel</code> constructor, so no field name can ever conflict with it by @ariebovenberg in <a href="https://github.com/pydantic/pydantic/pull/8072">#8072</a></li> <li>Make <code>@validate_call</code> return a function instead of a custom descriptor - fixes binding issue with inheritance and adds <code>self/cls</code> argument to validation errors by @alexmojaki in <a href="https://github.com/pydantic/pydantic/pull/8268">#8268</a></li> <li>Exclude <code>BaseModel</code> docstring from JSON schema description by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8352">#8352</a></li> <li>Introducing <code>classproperty</code> decorator for <code>model_computed_fields</code> by @Jocelyn-Gas in <a href="https://github.com/pydantic/pydantic/pull/8437">#8437</a></li> <li>Explicitly raise an error if field names clashes with types by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8243">#8243</a></li> <li>Use stricter serializer for unions of simple types by @alexdrydew <a href="https://github.com/pydantic/pydantic-core/pull/1132">pydantic/pydantic-core#1132</a></li> </ul> <h4>Performance</h4> <ul> <li>Add Codspeed profiling Actions workflow by @lambertsbennett in <a href="https://github.com/pydantic/pydantic/pull/8054">#8054</a></li> <li>Improve <code>int</code> extraction by @samuelcolvin in <a href="https://github.com/pydantic/pydantic-core/pull/1155">pydantic/pydantic-core#1155</a></li> <li>Improve performance of recursion guard by @samuelcolvin in <a href="https://github.com/pydantic/pydantic-core/pull/1156">pydantic/pydantic-core#1156</a></li> <li><code>dataclass</code> serialization speedups by @samuelcolvin in <a href="https://github.com/pydantic/pydantic-core/pull/1162">pydantic/pydantic-core#1162</a></li> <li>Avoid <code>HashMap</code> creation when looking up small JSON objects in <code>LazyIndexMaps</code> by @samuelcolvin in <a href="https://github.com/pydantic/jiter/pull/55">pydantic/jiter#55</a></li> <li>use hashbrown to speedup python string caching by @davidhewitt in <a href="https://github.com/pydantic/jiter/pull/51">pydantic/jiter#51</a></li> <li>Replace <code>Peak</code> with more efficient <code>Peek</code> by @davidhewitt in <a href="https://github.com/pydantic/jiter/pull/48">pydantic/jiter#48</a></li> </ul> <h4>Fixes</h4> <ul> <li>Move <code>getattr</code> warning in deprecated <code>BaseConfig</code> by @tlambert03 in <a href="https://github.com/pydantic/pydantic/pull/7183">#7183</a></li> <li>Only hash <code>model_fields</code>, not whole <code>__dict__</code> by @alexmojaki in <a href="https://github.com/pydantic/pydantic/pull/7786">#7786</a></li> <li>Fix mishandling of unions while freezing types in the <code>mypy</code> plugin by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/7411">#7411</a></li> <li>Fix <code>mypy</code> error on untyped <code>ClassVar</code> by @vincent-hachin-wmx in <a href="https://github.com/pydantic/pydantic/pull/8138">#8138</a></li> <li>Only compare pydantic fields in <code>BaseModel.__eq__</code> instead of whole <code>__dict__</code> by @QuentinSoubeyranAqemia in <a href="https://github.com/pydantic/pydantic/pull/7825">#7825</a></li> <li>Update <code>strict</code> docstring in <code>model_validate</code> method. by @LukeTonin in <a href="https://github.com/pydantic/pydantic/pull/8223">#8223</a></li> <li>Fix overload position of <code>computed_field</code> by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8227">#8227</a></li> <li>Fix custom type type casting used in multiple attributes by @ianhfc in <a href="https://github.com/pydantic/pydantic/pull/8066">#8066</a></li> <li>Fix issue not allowing <code>validate_call</code> decorator to be dynamically assigned to a class method by @jusexton in <a href="https://github.com/pydantic/pydantic/pull/8249">#8249</a></li> <li>Fix issue <code>unittest.mock</code> deprecation warnings by @ibleedicare in <a href="https://github.com/pydantic/pydantic/pull/8262">#8262</a></li> <li>Added tests for the case <code>JsonValue</code> contains subclassed primitive values by @jusexton in <a href="https://github.com/pydantic/pydantic/pull/8286">#8286</a></li> <li>Fix <code>mypy</code> error on free before validator (classmethod) by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8285">#8285</a></li> <li>Fix <code>to_snake</code> conversion by @jevins09 in <a href="https://github.com/pydantic/pydantic/pull/8316">#8316</a></li> <li>Fix type annotation of <code>ModelMetaclass.__prepare__</code> by @slanzmich in <a href="https://github.com/pydantic/pydantic/pull/8305">#8305</a></li> <li>Disallow <code>config</code> specification when initializing a <code>TypeAdapter</code> when the annotated type has config already by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8365">#8365</a></li> <li>Fix a naming issue with JSON schema for generics parametrized by recursive type aliases by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8389">#8389</a></li> <li>Fix type annotation in pydantic people script by @shenxiangzhuang in <a href="https://github.com/pydantic/pydantic/pull/8402">#8402</a></li> <li>Add support for field <code>alias</code> in <code>dataclass</code> signature by @NeevCohen in <a href="https://github.com/pydantic/pydantic/pull/8387">#8387</a></li> <li>Fix bug with schema generation with <code>Field(...)</code> in a forward ref by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8494">#8494</a></li> <li>Fix ordering of keys in <code>__dict__</code> with <code>model_construct</code> call by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8500">#8500</a></li> <li>Fix module <code>path_type</code> creation when globals does not contain <code>__name__</code> by @hramezani in <a href="https://github.com/pydantic/pydantic/pull/8470">#8470</a></li> <li>Fix for namespace issue with dataclasses with <code>from __future__ import annotations</code> by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8513">#8513</a></li> <li>Fix: make function validator types positional-only by @pmmmwh in <a href="https://github.com/pydantic/pydantic/pull/8479">#8479</a></li> <li>Fix usage of <code>@deprecated</code> by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8294">#8294</a></li> <li>Add more support for private attributes in <code>model_construct</code> call by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8525">#8525</a></li> <li>Use a stack for the types namespace by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8378">#8378</a></li> <li>Fix schema-building bug with <code>TypeAliasType</code> for types with refs by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8526">#8526</a></li> <li>Support <code>pydantic.Field(repr=False)</code> in dataclasses by @tigeryy2 in <a href="https://github.com/pydantic/pydantic/pull/8511">#8511</a></li> <li>Override <code>dataclass_transform</code> behavior for <code>RootModel</code> by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8163">#8163</a></li> <li>Refactor signature generation for simplicity by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8572">#8572</a></li> <li>Fix ordering bug of PlainValidator annotation by @Anvil in <a href="https://github.com/pydantic/pydantic/pull/8567">#8567</a></li> <li>Fix <code>exclude_none</code> for json serialization of <code>computed_field</code>s by @sydney-runkle in <a href="https://github.com/pydantic/pydantic-core/pull/1098">pydantic/pydantic-core#1098</a></li> <li>Support yyyy-MM-DD string for datetimes by @sydney-runkle in <a href="https://github.com/pydantic/pydantic-core/pull/1124">pydantic/pydantic-core#1124</a></li> </ul> <h3>New Contributors</h3> <h4><code>pydantic</code></h4> <ul> <li>@ekeew made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/6874">#6874</a></li> <li>@lambertsbennett made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8054">#8054</a></li> <li>@vincent-hachin-wmx made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8138">#8138</a></li> <li>@QuentinSoubeyranAqemia made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/7825">#7825</a></li> <li>@ariebovenberg made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8072">#8072</a></li> <li>@LukeTonin made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8223">#8223</a></li> <li>@denisart made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8231">#8231</a></li> <li>@ianhfc made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8066">#8066</a></li> <li>@eonu made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8255">#8255</a></li> <li>@amandahla made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8263">#8263</a></li> <li>@ibleedicare made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8262">#8262</a></li> <li>@jevins09 made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8316">#8316</a></li> <li>@cuu508 made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8322">#8322</a></li> <li>@slanzmich made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8305">#8305</a></li> <li>@jensenbox made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8331">#8331</a></li> <li>@szepeviktor made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8356">#8356</a></li> <li>@Elkiwa made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8341">#8341</a></li> <li>@parhamfh made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8395">#8395</a></li> <li>@shenxiangzhuang made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8402">#8402</a></li> <li>@NeevCohen made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8387">#8387</a></li> <li>@zby made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8497">#8497</a></li> <li>@patelnets made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8491">#8491</a></li> <li>@edwardwli made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8503">#8503</a></li> <li>@luca-matei made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8507">#8507</a></li> <li>@Jocelyn-Gas made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8437">#8437</a></li> <li>@bL34cHig0 made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8501">#8501</a></li> <li>@tigeryy2 made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8511">#8511</a></li> <li>@geospackle made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8537">#8537</a></li> <li>@Anvil made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8567">#8567</a></li> </ul> <h4><code>pydantic-core</code></h4> <ul> <li>@mariuswinger made their first contribution in <a href="https://github.com/pydantic/pydantic-core/pull/1087">pydantic/pydantic-core#1087</a></li> <li>@adamchainz made their first contribution in <a href="https://github.com/pydantic/pydantic-core/pull/1090">pydantic/pydantic-core#1090</a></li> <li>@akx made their first contribution in <a href="https://github.com/pydantic/pydantic-core/pull/1123">pydantic/pydantic-core#1123</a></li> </ul> <p><strong>Full Changelog</strong>: https://github.com/pydantic/pydantic/compare/v2.5.3...v2.6.0b1</p&gt

    pydantic/pydantic: v1.10.14 2024-01-19

    No full text
    <h2>What's Changed</h2> <ul> <li>Update install.md by @dmontagu in https://github.com/pydantic/pydantic/pull/7690</li> <li>Fix ci to only deploy docs on release by @sydney-runkle in https://github.com/pydantic/pydantic/pull/7740</li> <li>Ubuntu fixes for V1 by @sydney-runkle in https://github.com/pydantic/pydantic/pull/8540 and https://github.com/pydantic/pydantic/pull/8587</li> <li>Fix <code>cached_property</code> handling in dataclasses when copied by @rdbisme in https://github.com/pydantic/pydantic/pull/8407</li> </ul> <h2>New Contributors</h2> <ul> <li>@rdbisme made their first contribution in https://github.com/pydantic/pydantic/pull/8407</li> </ul> <p><strong>Full Changelog</strong>: https://github.com/pydantic/pydantic/compare/v1.10.13...v1.10.14</p&gt

    pydantic/pydantic: v2.6.0 2024-01-29

    No full text
    <h2>v2.6.0 (2024-01-29)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.6.0">GitHub release</a></p> <p>The code released in v2.6.0 is practically identical to that of v2.6.0b1.</p> <h3>What's Changed</h3> <h4>Packaging</h4> <ul> <li>Check for <code>email-validator</code> version >= 2.0 by @commonism in <a href="https://github.com/pydantic/pydantic/pull/6033">#6033</a></li> <li>Upgrade `ruff`` target version to Python 3.8 by @Elkiwa in <a href="https://github.com/pydantic/pydantic/pull/8341">#8341</a></li> <li>Update to <code>pydantic-extra-types==2.4.1</code> by @yezz123 in <a href="https://github.com/pydantic/pydantic/pull/8478">#8478</a></li> <li>Update to <code>pyright==1.1.345</code> by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8453">#8453</a></li> <li>Update pydantic-core from 2.14.6 to 2.16.1, significant changes from these updates are described below, full changelog <a href="https://github.com/pydantic/pydantic-core/compare/v2.14.6...v2.16.1">here</a></li> </ul> <h4>New Features</h4> <ul> <li>Add <code>NatsDsn</code> by @ekeew in <a href="https://github.com/pydantic/pydantic/pull/6874">#6874</a></li> <li>Add <code>ConfigDict.ser_json_inf_nan</code> by @davidhewitt in <a href="https://github.com/pydantic/pydantic/pull/8159">#8159</a></li> <li>Add <code>types.OnErrorOmit</code> by @adriangb in <a href="https://github.com/pydantic/pydantic/pull/8222">#8222</a></li> <li>Support <code>AliasGenerator</code> usage by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8282">#8282</a></li> <li>Add Pydantic People Page to docs by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8345">#8345</a></li> <li>Support <code>yyyy-MM-DD</code> datetime parsing by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8404">#8404</a></li> <li>Added bits conversions to the <code>ByteSize</code> class #8415 by @luca-matei in <a href="https://github.com/pydantic/pydantic/pull/8507">#8507</a></li> <li>Enable json schema creation with type <code>ByteSize</code> by @geospackle in <a href="https://github.com/pydantic/pydantic/pull/8537">#8537</a></li> <li>Add <code>eval_type_backport</code> to handle union operator and builtin generic subscripting in older Pythons by @alexmojaki in <a href="https://github.com/pydantic/pydantic/pull/8209">#8209</a></li> <li>Add support for <code>dataclass</code> fields <code>init</code> by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8552">#8552</a></li> <li>Implement pickling for <code>ValidationError</code> by @davidhewitt in <a href="https://github.com/pydantic/pydantic-core/pull/1119">pydantic/pydantic-core#1119</a></li> <li>Add unified tuple validator that can handle "variadic" tuples via PEP-646 by @dmontagu in <a href="https://github.com/pydantic/pydantic-core/pull/865">pydantic/pydantic-core#865</a></li> </ul> <h4>Changes</h4> <ul> <li>Drop Python3.7 support by @hramezani in <a href="https://github.com/pydantic/pydantic/pull/7188">#7188</a></li> <li>Drop Python 3.7, and PyPy 3.7 and 3.8 by @davidhewitt in <a href="https://github.com/pydantic/pydantic-core/pull/1129">pydantic/pydantic-core#1129</a></li> <li>Use positional-only <code>self</code> in <code>BaseModel</code> constructor, so no field name can ever conflict with it by @ariebovenberg in <a href="https://github.com/pydantic/pydantic/pull/8072">#8072</a></li> <li>Make <code>@validate_call</code> return a function instead of a custom descriptor - fixes binding issue with inheritance and adds <code>self/cls</code> argument to validation errors by @alexmojaki in <a href="https://github.com/pydantic/pydantic/pull/8268">#8268</a></li> <li>Exclude <code>BaseModel</code> docstring from JSON schema description by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8352">#8352</a></li> <li>Introducing <code>classproperty</code> decorator for <code>model_computed_fields</code> by @Jocelyn-Gas in <a href="https://github.com/pydantic/pydantic/pull/8437">#8437</a></li> <li>Explicitly raise an error if field names clashes with types by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8243">#8243</a></li> <li>Use stricter serializer for unions of simple types by @alexdrydew <a href="https://github.com/pydantic/pydantic-core/pull/1132">pydantic/pydantic-core#1132</a></li> </ul> <h4>Performance</h4> <ul> <li>Add Codspeed profiling Actions workflow by @lambertsbennett in <a href="https://github.com/pydantic/pydantic/pull/8054">#8054</a></li> <li>Improve <code>int</code> extraction by @samuelcolvin in <a href="https://github.com/pydantic/pydantic-core/pull/1155">pydantic/pydantic-core#1155</a></li> <li>Improve performance of recursion guard by @samuelcolvin in <a href="https://github.com/pydantic/pydantic-core/pull/1156">pydantic/pydantic-core#1156</a></li> <li><code>dataclass</code> serialization speedups by @samuelcolvin in <a href="https://github.com/pydantic/pydantic-core/pull/1162">pydantic/pydantic-core#1162</a></li> <li>Avoid <code>HashMap</code> creation when looking up small JSON objects in <code>LazyIndexMaps</code> by @samuelcolvin in <a href="https://github.com/pydantic/jiter/pull/55">pydantic/jiter#55</a></li> <li>use hashbrown to speedup python string caching by @davidhewitt in <a href="https://github.com/pydantic/jiter/pull/51">pydantic/jiter#51</a></li> <li>Replace <code>Peak</code> with more efficient <code>Peek</code> by @davidhewitt in <a href="https://github.com/pydantic/jiter/pull/48">pydantic/jiter#48</a></li> </ul> <h4>Fixes</h4> <ul> <li>Move <code>getattr</code> warning in deprecated <code>BaseConfig</code> by @tlambert03 in <a href="https://github.com/pydantic/pydantic/pull/7183">#7183</a></li> <li>Only hash <code>model_fields</code>, not whole <code>__dict__</code> by @alexmojaki in <a href="https://github.com/pydantic/pydantic/pull/7786">#7786</a></li> <li>Fix mishandling of unions while freezing types in the <code>mypy</code> plugin by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/7411">#7411</a></li> <li>Fix <code>mypy</code> error on untyped <code>ClassVar</code> by @vincent-hachin-wmx in <a href="https://github.com/pydantic/pydantic/pull/8138">#8138</a></li> <li>Only compare pydantic fields in <code>BaseModel.__eq__</code> instead of whole <code>__dict__</code> by @QuentinSoubeyranAqemia in <a href="https://github.com/pydantic/pydantic/pull/7825">#7825</a></li> <li>Update <code>strict</code> docstring in <code>model_validate</code> method. by @LukeTonin in <a href="https://github.com/pydantic/pydantic/pull/8223">#8223</a></li> <li>Fix overload position of <code>computed_field</code> by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8227">#8227</a></li> <li>Fix custom type type casting used in multiple attributes by @ianhfc in <a href="https://github.com/pydantic/pydantic/pull/8066">#8066</a></li> <li>Fix issue not allowing <code>validate_call</code> decorator to be dynamically assigned to a class method by @jusexton in <a href="https://github.com/pydantic/pydantic/pull/8249">#8249</a></li> <li>Fix issue <code>unittest.mock</code> deprecation warnings by @ibleedicare in <a href="https://github.com/pydantic/pydantic/pull/8262">#8262</a></li> <li>Added tests for the case <code>JsonValue</code> contains subclassed primitive values by @jusexton in <a href="https://github.com/pydantic/pydantic/pull/8286">#8286</a></li> <li>Fix <code>mypy</code> error on free before validator (classmethod) by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8285">#8285</a></li> <li>Fix <code>to_snake</code> conversion by @jevins09 in <a href="https://github.com/pydantic/pydantic/pull/8316">#8316</a></li> <li>Fix type annotation of <code>ModelMetaclass.__prepare__</code> by @slanzmich in <a href="https://github.com/pydantic/pydantic/pull/8305">#8305</a></li> <li>Disallow <code>config</code> specification when initializing a <code>TypeAdapter</code> when the annotated type has config already by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8365">#8365</a></li> <li>Fix a naming issue with JSON schema for generics parametrized by recursive type aliases by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8389">#8389</a></li> <li>Fix type annotation in pydantic people script by @shenxiangzhuang in <a href="https://github.com/pydantic/pydantic/pull/8402">#8402</a></li> <li>Add support for field <code>alias</code> in <code>dataclass</code> signature by @NeevCohen in <a href="https://github.com/pydantic/pydantic/pull/8387">#8387</a></li> <li>Fix bug with schema generation with <code>Field(...)</code> in a forward ref by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8494">#8494</a></li> <li>Fix ordering of keys in <code>__dict__</code> with <code>model_construct</code> call by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8500">#8500</a></li> <li>Fix module <code>path_type</code> creation when globals does not contain <code>__name__</code> by @hramezani in <a href="https://github.com/pydantic/pydantic/pull/8470">#8470</a></li> <li>Fix for namespace issue with dataclasses with <code>from __future__ import annotations</code> by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8513">#8513</a></li> <li>Fix: make function validator types positional-only by @pmmmwh in <a href="https://github.com/pydantic/pydantic/pull/8479">#8479</a></li> <li>Fix usage of <code>@deprecated</code> by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8294">#8294</a></li> <li>Add more support for private attributes in <code>model_construct</code> call by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8525">#8525</a></li> <li>Use a stack for the types namespace by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8378">#8378</a></li> <li>Fix schema-building bug with <code>TypeAliasType</code> for types with refs by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8526">#8526</a></li> <li>Support <code>pydantic.Field(repr=False)</code> in dataclasses by @tigeryy2 in <a href="https://github.com/pydantic/pydantic/pull/8511">#8511</a></li> <li>Override <code>dataclass_transform</code> behavior for <code>RootModel</code> by @Viicos in <a href="https://github.com/pydantic/pydantic/pull/8163">#8163</a></li> <li>Refactor signature generation for simplicity by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8572">#8572</a></li> <li>Fix ordering bug of PlainValidator annotation by @Anvil in <a href="https://github.com/pydantic/pydantic/pull/8567">#8567</a></li> <li>Fix <code>exclude_none</code> for json serialization of <code>computed_field</code>s by @sydney-runkle in <a href="https://github.com/pydantic/pydantic-core/pull/1098">pydantic/pydantic-core#1098</a></li> <li>Support yyyy-MM-DD string for datetimes by @sydney-runkle in <a href="https://github.com/pydantic/pydantic-core/pull/1124">pydantic/pydantic-core#1124</a></li> <li>Tweak ordering of definitions in generated schemas by @StrawHatDrag0n in <a href="https://github.com/pydantic/pydantic/pull/8583">#8583</a></li> </ul> <h3>New Contributors</h3> <h4><code>pydantic</code></h4> <ul> <li>@ekeew made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/6874">#6874</a></li> <li>@lambertsbennett made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8054">#8054</a></li> <li>@vincent-hachin-wmx made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8138">#8138</a></li> <li>@QuentinSoubeyranAqemia made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/7825">#7825</a></li> <li>@ariebovenberg made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8072">#8072</a></li> <li>@LukeTonin made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8223">#8223</a></li> <li>@denisart made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8231">#8231</a></li> <li>@ianhfc made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8066">#8066</a></li> <li>@eonu made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8255">#8255</a></li> <li>@amandahla made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8263">#8263</a></li> <li>@ibleedicare made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8262">#8262</a></li> <li>@jevins09 made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8316">#8316</a></li> <li>@cuu508 made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8322">#8322</a></li> <li>@slanzmich made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8305">#8305</a></li> <li>@jensenbox made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8331">#8331</a></li> <li>@szepeviktor made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8356">#8356</a></li> <li>@Elkiwa made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8341">#8341</a></li> <li>@parhamfh made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8395">#8395</a></li> <li>@shenxiangzhuang made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8402">#8402</a></li> <li>@NeevCohen made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8387">#8387</a></li> <li>@zby made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8497">#8497</a></li> <li>@patelnets made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8491">#8491</a></li> <li>@edwardwli made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8503">#8503</a></li> <li>@luca-matei made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8507">#8507</a></li> <li>@Jocelyn-Gas made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8437">#8437</a></li> <li>@bL34cHig0 made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8501">#8501</a></li> <li>@tigeryy2 made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8511">#8511</a></li> <li>@geospackle made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8537">#8537</a></li> <li>@Anvil made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8567">#8567</a></li> <li>@hungtsetse made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8546">#8546</a></li> <li>@StrawHatDrag0n made their first contribution in <a href="https://github.com/pydantic/pydantic/pull/8583">#8583</a></li> </ul> <h4><code>pydantic-core</code></h4> <ul> <li>@mariuswinger made their first contribution in <a href="https://github.com/pydantic/pydantic-core/pull/1087">pydantic/pydantic-core#1087</a></li> <li>@adamchainz made their first contribution in <a href="https://github.com/pydantic/pydantic-core/pull/1090">pydantic/pydantic-core#1090</a></li> <li>@akx made their first contribution in <a href="https://github.com/pydantic/pydantic-core/pull/1123">pydantic/pydantic-core#1123</a></li> </ul&gt

    pydantic/pydantic: v2.5.1 2023-11-15

    No full text
    <h2>v2.5.1 (2023-11-15)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.5.1">GitHub release</a></p> <h3>What's Changed</h3> <h4>Packaging</h4> <ul> <li>uprev pydantic-core to 2.14.3 by @samuelcolvin in <a href="https://github.com/pydantic/pydantic/pull/8120">#8120</a></li> </ul> <h4>Fixes</h4> <ul> <li>Fix package description limit by @dmontagu in <a href="https://github.com/pydantic/pydantic/pull/8097">#8097</a></li> <li>Fix <code>ValidateCallWrapper</code> error when creating a model which has a @validate_call wrapped field annotation by @sydney-runkle in <a href="https://github.com/pydantic/pydantic/pull/8110">#8110</a></li> </ul> <p>Full Changelog: https://github.com/pydantic/pydantic/compare/v2.5.0...v2.5.1/</p&gt
    corecore