head 1.37; access; symbols pkgsrc-2026Q2:1.37.0.2 pkgsrc-2026Q2-base:1.37 pkgsrc-2026Q1:1.35.0.2 pkgsrc-2026Q1-base:1.35 pkgsrc-2025Q4:1.34.0.6 pkgsrc-2025Q4-base:1.34 pkgsrc-2025Q3:1.34.0.4 pkgsrc-2025Q3-base:1.34 pkgsrc-2025Q2:1.34.0.2 pkgsrc-2025Q2-base:1.34 pkgsrc-2025Q1:1.29.0.2 pkgsrc-2025Q1-base:1.29 pkgsrc-2024Q4:1.26.0.2 pkgsrc-2024Q4-base:1.26 pkgsrc-2024Q3:1.23.0.2 pkgsrc-2024Q3-base:1.23 pkgsrc-2024Q2:1.19.0.2 pkgsrc-2024Q2-base:1.19 pkgsrc-2024Q1:1.14.0.2 pkgsrc-2024Q1-base:1.14 pkgsrc-2023Q4:1.9.0.6 pkgsrc-2023Q4-base:1.9 pkgsrc-2023Q3:1.9.0.4 pkgsrc-2023Q3-base:1.9 pkgsrc-2023Q2:1.9.0.2 pkgsrc-2023Q2-base:1.9 pkgsrc-2023Q1:1.6.0.2 pkgsrc-2023Q1-base:1.6 pkgsrc-2022Q4:1.3.0.2 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.2.0.2 pkgsrc-2022Q3-base:1.2; locks; strict; comment @# @; 1.37 date 2026.05.14.12.22.00; author adam; state Exp; branches; next 1.36; commitid izXzY8uXs0pymMFG; 1.36 date 2026.04.28.13.06.42; author adam; state Exp; branches; next 1.35; commitid W8WnLm1vJncN7JDG; 1.35 date 2025.12.26.10.49.13; author adam; state Exp; branches; next 1.34; commitid o9WUy6Q4eM5MjUnG; 1.34 date 2025.06.15.08.28.01; author adam; state Exp; branches; next 1.33; commitid rTx4eZDpHIfXLXYF; 1.33 date 2025.05.23.06.41.29; author adam; state Exp; branches; next 1.32; commitid EfvE6F1a4b0fVZVF; 1.32 date 2025.05.02.07.11.51; author adam; state Exp; branches; next 1.31; commitid EYPNpm0uxPbuLiTF; 1.31 date 2025.04.22.11.28.13; author adam; state Exp; branches; next 1.30; commitid TlS4OfTQU6Rwv2SF; 1.30 date 2025.04.18.12.29.19; author adam; state Exp; branches; next 1.29; commitid sjiph3f9RGtfYwRF; 1.29 date 2025.01.25.11.47.31; author adam; state Exp; branches; next 1.28; commitid LpoiPizU4GVkpRGF; 1.28 date 2025.01.09.14.23.14; author adam; state Exp; branches; next 1.27; commitid 4qJYAG9lKPoJMOEF; 1.27 date 2024.12.24.22.20.19; author adam; state Exp; branches; next 1.26; commitid DYwgmwy0kcJhWNCF; 1.26 date 2024.12.04.11.25.32; author adam; state Exp; branches; next 1.25; commitid cbQGyBqxKFNtXaAF; 1.25 date 2024.11.22.07.51.04; author adam; state Exp; branches; next 1.24; commitid HcN27eu2PswP9CyF; 1.24 date 2024.11.21.06.04.33; author adam; state Exp; branches; next 1.23; commitid JImTY60PIbR2BtyF; 1.23 date 2024.09.19.15.05.53; author adam; state Exp; branches; next 1.22; commitid GXMjCzLMUdDvCqqF; 1.22 date 2024.09.09.16.51.29; author adam; state Exp; branches; next 1.21; commitid chg5LYkq8KfJw9pF; 1.21 date 2024.09.07.05.34.24; author adam; state Exp; branches; next 1.20; commitid r6EBFBKEwCPcQPoF; 1.20 date 2024.07.04.11.24.20; author adam; state Exp; branches; next 1.19; commitid bJ4KrlwHUUEMRvgF; 1.19 date 2024.06.12.15.13.50; author adam; state Exp; branches; next 1.18; commitid bWAlIq01raGxQHdF; 1.18 date 2024.06.06.05.20.10; author adam; state Exp; branches; next 1.17; commitid 1Wb8rdmnZp3SKScF; 1.17 date 2024.05.29.07.30.39; author adam; state Exp; branches; next 1.16; commitid wRR0qz5S51SCJRbF; 1.16 date 2024.04.24.12.43.18; author adam; state Exp; branches; next 1.15; commitid inOQySKXhMYzAo7F; 1.15 date 2024.04.18.12.26.55; author adam; state Exp; branches; next 1.14; commitid lF3ByfXkt9AQGC6F; 1.14 date 2024.03.17.12.53.53; author adam; state Exp; branches; next 1.13; commitid XM6mTSjqEDAURv2F; 1.13 date 2024.02.28.08.15.30; author adam; state Exp; branches; next 1.12; commitid ewElFCGnrU5jUa0F; 1.12 date 2024.02.25.22.55.41; author adam; state Exp; branches; next 1.11; commitid Xyt3G7yw2MzhSRZE; 1.11 date 2024.02.05.21.20.27; author adam; state Exp; branches; next 1.10; commitid zwxiPuEwvHDmZhXE; 1.10 date 2024.01.31.00.03.49; author adam; state Exp; branches; next 1.9; commitid tRRcTbfJeLHk5xWE; 1.9 date 2023.06.09.09.39.32; author adam; state Exp; branches; next 1.8; commitid JLFXEiStOPleRfsE; 1.8 date 2023.05.29.18.00.36; author adam; state Exp; branches; next 1.7; commitid qkmajkffz5s1ZSqE; 1.7 date 2023.04.04.11.21.37; author adam; state Exp; branches; next 1.6; commitid wMcrU6Z0n6HIxMjE; 1.6 date 2023.03.09.05.33.49; author adam; state Exp; branches; next 1.5; commitid 3Y57S5OUkkvhspgE; 1.5 date 2023.02.18.21.02.40; author adam; state Exp; branches; next 1.4; commitid YzB7xuCMyTRNc3eE; 1.4 date 2023.01.02.13.15.56; author adam; state Exp; branches; next 1.3; commitid OhjLxssYw56n8Y7E; 1.3 date 2022.10.25.09.15.04; author adam; state Exp; branches; next 1.2; commitid hkeAWkJMUAw815ZD; 1.2 date 2022.08.23.11.20.40; author adam; state Exp; branches; next 1.1; commitid 5edsJWZQCBOVJZQD; 1.1 date 2022.07.24.10.48.25; author gdt; state Exp; branches; next ; commitid Xl8quZSmBIXBw8ND; desc @@ 1.37 log @py-pydantic-core py-pydantic: updated to 2.13.4 v2.13.4 (2026-05-06) Packaging Bump libc from 0.2.155 to 0.2.185 Adapt pydantic-core linker flags on macOS Fixes Preserve RootModel core metadata @ text @$NetBSD: distinfo,v 1.36 2026/04/28 13:06:42 adam Exp $ BLAKE2s (pydantic-2.13.4.tar.gz) = 5f18f034c6faa1fa858adddbd67fd1d13b9e2f10db1a09f5b5a8a24598a92177 SHA512 (pydantic-2.13.4.tar.gz) = c1cd883a44e3664cccf5f8c7a10cfd8d27748af0dc50cbc0bf76d2c591d3b19dd247d8b12ab2f494fd144e80e5a4aeaf94632ef6577c5bee2aadaacd07915249 Size (pydantic-2.13.4.tar.gz) = 844775 bytes @ 1.36 log @py-pydantic: updated to 2.13.3 2.13.3 Handle AttributeError subclasses with from_attributes 2.13.2 Fix ValidationInfo.field_name missing with model_validate_json() 2.13.1 Fix ValidationInfo.data missing with model_validate_json() @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.35 2025/12/26 10:49:13 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.13.3.tar.gz) = c8d96400aa1e3815b6ac32739074776c942fe5f3345ae6bd4dab52ab8fbda89b SHA512 (pydantic-2.13.3.tar.gz) = fb807b94eec1ac603e515e11e99d1b4c19d31c0008d2ae02f4798eab8ad524202b38a71211f1667b476f38385f7e13f7e16b38a5912081eb5df22402020f618a Size (pydantic-2.13.3.tar.gz) = 844068 bytes @ 1.35 log @py-pydantic: updated to 2.12.5 2.12.5 (2025-11-26) This is the fifth 2.12 patch release, addressing an issue with the `MISSING` sentinel and providing several documentation improvements. The next 2.13 minor release will be published in a couple weeks, and will include a new *polymorphic serialization* feature addressing the remaining unexpected changes to the *serialize as any* behavior. * Fix pickle error when using `model_construct()` on a model with `MISSING` as a default value * Several updates to the documentation @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.34 2025/06/15 08:28:01 adam Exp $ d3 3 a5 4 BLAKE2s (pydantic-2.12.5.tar.gz) = 01b7ae68ed837d73416d99d6d177254c4379179328baf85e2533b1b3c6cc2c66 SHA512 (pydantic-2.12.5.tar.gz) = 93968bf402ba1b2ea48375be021f8e2cfc61bee2cb39a7ec470bf445d752f1bfd638dd951b34f443ddb6a853aa81f1860b11cc6478eb20c142e48347c80ec827 Size (pydantic-2.12.5.tar.gz) = 821591 bytes SHA1 (patch-pyproject.toml) = 0c27828b9251d71f87af379405ab1ff736ed6900 @ 1.34 log @py-pydantic: updated to 2.11.7 v2.11.7 (2025-06-14) Fixes * Copy `FieldInfo` instance if necessary during `FieldInfo` build v2.11.6 (2025-06-13) Fixes * Rebuild dataclass fields before schema generation * Always store the original field assignment on `FieldInfo` @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.33 2025/05/23 06:41:29 adam Exp $ d3 4 a6 4 BLAKE2s (pydantic-2.11.7.tar.gz) = 6b22b5f6761297620bfef9ff5802167141a52743ecb74b85de1f5761cdc0d5ca SHA512 (pydantic-2.11.7.tar.gz) = 54ee1a49d5a429cad31928425c197139ae3cce004d8f3530835ce39897be9afa6aea35e639af1d6290bace7148e1369ce66840e26bced329bc2e7d93b3dad6e5 Size (pydantic-2.11.7.tar.gz) = 788350 bytes SHA1 (patch-pyproject.toml) = 17dd29379d25694e224dfd2bdfd958c489f1ade0 @ 1.33 log @py-pydantic: updated to 2.11.5 2.11.5 (2025-05-22) Fixes * Check if `FieldInfo` is complete after applying type variable map * Do not delete mock validator/serializer in `model_rebuild()` * Do not duplicate metadata on model rebuild @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.32 2025/05/02 07:11:51 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.11.5.tar.gz) = f0c16f4e5f7c083bd52ac705dca2230b50039554b3f44242e86a6fc1b4c4f297 SHA512 (pydantic-2.11.5.tar.gz) = 6ff5b0953d383518cadfab4cc1d84395e100c76e70da8c7d861b89eee308dca29021393e24dabe0f278b09886cc64015b354a42a35ba5873287830f7533160f1 Size (pydantic-2.11.5.tar.gz) = 787102 bytes @ 1.32 log @py-pydantic: updated to 2.11.4 v2.11.4 (2025-04-29) Packaging * Bump `mkdocs-llmstxt` to v0.2.0 Changes * Allow config and bases to be specified together in `create_model()` This change was backported as it was previously possible (although not meant to be supported) to provide `model_config` as a field, which would make it possible to provide both configuration and bases. Fixes * Remove generics cache workaround * Remove coercion of decimal constraints * Fix crash when expanding root type in the mypy plugin * Fix issue with recursive generic models * Traverse `function-before` schemas during schema gathering @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.31 2025/04/22 11:28:13 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.11.4.tar.gz) = 5e12a6a6ece68ea6ad511361d88c78650565d419ae7ee40f567ffc86d320fe63 SHA512 (pydantic-2.11.4.tar.gz) = f77d0ecc432d222d07b2ed0ff30fcb1f569b3f9ed067db9fc921db5de650d12babf02b36a369d7cb436c99053cfea3d96a8cc02e1b1880575085db1296446655 Size (pydantic-2.11.4.tar.gz) = 786540 bytes @ 1.31 log @py-pydantic: relax pydantic-core version requirement; add TEST_DEPENDS @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.30 2025/04/18 12:29:19 adam Exp $ d3 4 a6 4 BLAKE2s (pydantic-2.11.3.tar.gz) = b627856acc3eb5c17a13d865d092f29f14791c8d533baab6315fcd93c49492a1 SHA512 (pydantic-2.11.3.tar.gz) = b490b5f88159bf1980611a97ea607e6fba126c8a1879376894d715cbd55efbe0b9c648b1ae4ec98ec06323b4a418da5cc5060be265166b85d134d20964b75c29 Size (pydantic-2.11.3.tar.gz) = 785513 bytes SHA1 (patch-pyproject.toml) = dbb5446fc76498aa56f04176fd1c4ac4c07ce066 @ 1.30 log @py-pydantic: updated to 2.11.3 2.11.3 Packaging Update V1 copy to v1.10.21 Fixes Preserve field description when rebuilding model fields 2.11.2 Fixes Bump pydantic-core to v2.33.1 Make sure __pydantic_private__ exists before setting private attributes Do not override FieldInfo._complete when using field from parent class Provide the available definitions when applying discriminated unions Do not expand root type in the mypy plugin for variables Mention the attribute name in model fields deprecation message Properly validate parameterized mappings 2.11.1 Fixes Do not override 'definitions-ref' schemas containing serialization schemas or metadata @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.29 2025/01/25 11:47:31 adam Exp $ d6 1 @ 1.29 log @py-pydantic: updated to 2.10.6 v2.10.6 (2025-01-23) * Fix JSON Schema reference collection with `'examples'` keys * Fix url python serialization @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.28 2025/01/09 14:23:14 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.10.6.tar.gz) = cd0f88fa9623f7f6044f6a1bd38375ae1af6e8bc0bb6270241d9cb2390edd932 SHA512 (pydantic-2.10.6.tar.gz) = 69c5cdfb9047875497cf2ac0107f0aaa8d1d91a354d514277e913cc13081e1a76f72a154b50339c95240c82d2a262f4b8dcf71c1e5762449bd344054dba449ce Size (pydantic-2.10.6.tar.gz) = 761681 bytes @ 1.28 log @py-pydantic: updated to 2.10.5 v2.10.5 (2025-01-08) What's Changed * Remove custom MRO implementation of Pydantic models * Fix URL serialization for unions @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.27 2024/12/24 22:20:19 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.10.5.tar.gz) = 663f3550513a5b9e9ca39aaa642bd4c68084f21dd3770c5cb213512d8b108b6a SHA512 (pydantic-2.10.5.tar.gz) = 0e8ab6786c94b13fe155501cc1cba357bcf69b40413383415fd7e0b6fcaf5a818aa1efcc67a837c1c3c2315eb8b7b26c3af4b03c3f8a57ff3694955f792d2964 Size (pydantic-2.10.5.tar.gz) = 761287 bytes @ 1.27 log @py-pydantic: updated to 2.10.4 v2.10.4 (2024-12-18) Packaging * Bump `pydantic-core` to v2.27.2 Fixes * Fix for comparison of `AnyUrl` objects * Properly fetch PEP 695 type params for functions, do not fetch annotations from signature * Include JSON Schema input core schema in function schemas * Add `len` to `_BaseUrl` to avoid TypeError * Make sure the type reference is removed from the seen references @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.26 2024/12/04 11:25:32 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.10.4.tar.gz) = d57b12b42a639a00bbcbe0023b83f1ca1dc6d593a6d3960e7a971479c8e30334 SHA512 (pydantic-2.10.4.tar.gz) = 1c7bfcc214195d8db0cadbdb177da3e2e3ea596d695360036b0a268410711a780f9a88df622016d9bb6d39596f20e01bebc4cf38bdbe5dc987cb80fbb14aeb56 Size (pydantic-2.10.4.tar.gz) = 762094 bytes @ 1.26 log @py-pydantic: updated to 2.10.3 v2.10.3 (2024-12-03) Fixes * Set fields when `defer_build` is set on Pydantic dataclasses * Do not resolve the JSON Schema reference for `dict` core schema keys * Use the globals of the function when evaluating the return type for `PlainSerializer` and `WrapSerializer` functions * Fix host required enforcement for urls to be compatible with v2.9 behavior * Add a `default_factory_takes_validated_data` property to `FieldInfo` * Fix url json schema in `serialization` mode v2.10.2 (2024-11-25) Fixes * Only evaluate FieldInfo annotations if required during schema building * Do not evaluate annotations for private fields * Support serialization as any for `Secret` types and `Url` types * Fix type hint of `Field.default` to be compatible with Python 3.8 and 3.9 * Add hashing support for URL types * Hide `BaseModel.__replace__` definition from type checkers @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.25 2024/11/22 07:51:04 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.10.3.tar.gz) = 855179916e4f0198ce6a1eea141bc16e6531b4e0f5275d56cd8736ab301ffa52 SHA512 (pydantic-2.10.3.tar.gz) = d5264c29b042ce24e8c03bad7a7db1fa556fb84c90b287cb87ddc52560d60db3d363ed7f05ea1af9e1469e52150388c9b119982cea5272960c0db2b31bd57fc6 Size (pydantic-2.10.3.tar.gz) = 786486 bytes @ 1.25 log @py-pydantic: updated to 2.10.1 v2.10.1 Packaging * Bump `pydantic-core` version to `v2.27.1` Fixes * Use the correct frame when instantiating a parametrized `TypeAdapter` * Relax check for validated data in `default_factory` utils * Fix type checking issue with `model_fields` and `model_computed_fields` * Use the parent configuration during schema generation for stdlib `dataclass`es * Use the `globals` of the function when evaluating the return type of serializers and `computed_field`s * Fix URL constraint application * Fix URL equality with different validation methods * Fix JSON schema title when specified as `''` * Fix `python` mode serialization for `complex` inference @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.24 2024/11/21 06:04:33 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.10.1.tar.gz) = 865fb258cfa63faa11b7749edc5fef1120f455470b0b4a442995f6e8538c361a SHA512 (pydantic-2.10.1.tar.gz) = fd2283ec7463568f12e2a7a687e2a2b030441101f6c9aa621914ce1ba2bfd0b43da0767bdb0d1909a321f11cd37f85222eac4cc4ca59aa73a7b2fc6ccefd0f8a Size (pydantic-2.10.1.tar.gz) = 783717 bytes @ 1.24 log @py-pydantic: updted to 2.10.0 v2.10.0 Packaging * Bump `pydantic-core` to `v2.27.0` * Replaced pdm with uv New Features * Support `fractions.Fraction` * Support `Hashable` for json validation * Add a `SocketPath` type for `linux` systems * Allow arbitrary refs in JSON schema `examples` * Support `defer_build` for Pydantic dataclasses * Adding v1 / v2 incompatibility warning for nested v1 model * Add support for unpacked `TypedDict` to type hint variadic keyword arguments with `@@validate_call` * Support compiled patterns in `protected_namespaces` * Add support for `propertyNames` in JSON schema * Adding `__replace__` protocol for Python 3.13+ support * Expose public `sort` method for JSON schema generation * Add runtime validation of `@@validate_call` callable argument * Add `experimental_allow_partial` support * Support default factories taking validated data as an argument * Allow subclassing `ValidationError` and `PydanticCustomError` * Add `trailing-strings` support to `experimental_allow_partial` * Add `rebuild()` method for `TypeAdapter` and simplify `defer_build` patterns * Improve `TypeAdapter` instance repr Changes * Don't allow customization of `SchemaGenerator` until interface is more stable * Cleanly `defer_build` on `TypeAdapters`, removing experimental flag * Fix `mro` of generic subclass * Strip whitespaces on JSON Schema title generation * Use `b64decode` and `b64encode` for `Base64Bytes` type * Relax protected namespace config default * Revalidate parametrized generics if instance's origin is subclass of OG class * Warn if configuration is specified on the `@@dataclass` decorator and with the `__pydantic_config__` attribute * Recommend against using `Ellipsis` (...) with `Field` * Migrate to subclassing instead of annotated approach for pydantic url types * Change JSON schema generation of `Literal`s and `Enums` * Simplify unions involving `Any` or `Never` when replacing type variables * Do not require padding when decoding `base64` bytes * Support dates all the way to 1BC Performance * Schema cleaning: skip unnecessary copies during schema walking * Refactor namespace logic for annotations evaluation * Improve email regexp on edge cases * `CoreMetadata` refactor with an emphasis on documentation, schema build time performance, and reducing complexity Fixes * Remove guarding check on `computed_field` with `field_serializer` * Fix `Predicate` issue in `v2.9.0` * Fixing `annotated-types` bound * Turn `tzdata` install requirement into optional `timezone` dependency * Use correct types namespace when building `namedtuple` core schemas * Fix evaluation of stringified annotations during namespace inspection * Fix `IncEx` type alias definition * Do not error when trying to evaluate annotations of private attributes * Fix nested type statement * Improve typing of `ModelMetaclass.mro` * Fix class access of deprecated `computed_field`s * Make sure `inspect.iscoroutinefunction` works on coroutines decorated with `@@validate_call` * Fix `NameError` when using `validate_call` with PEP 695 on a class * Fix `ZoneInfo` with various invalid types * Fix `PydanticUserError` on empty `model_config` with annotations * Fix variance issue in `_IncEx` type alias, only allow `True` * Fix serialization schema generation when using `PlainValidator` * Fix schema generation error when serialization schema holds references * Inline references if possible when generating schema for `json_schema_input_type` * Fix recursive arguments in `Representation` * Fix representation for builtin function types * Add python validators for decimal constraints (`max_digits` and `decimal_places`) * Only fetch `__pydantic_core_schema__` from the current class during schema generation * Fix `stacklevel` on deprecation warnings for `BaseModel` * Fix warning `stacklevel` in `BaseModel.__init__` * Improve error handling for in-evaluable refs for discriminator application * Change the signature of `ConfigWrapper.core_config` to take the title directly * Do not use the previous config from the stack for dataclasses without config * Fix serialization for IP types with `mode='python'` * Support constraint application for `Base64Etc` types * Fix `validate_call` ignoring `Field` in `Annotated` * Raise an error when `Self` is invalid * Using `core_schema.InvalidSchema` instead of metadata injection + checks * Tweak type alias logic * Support usage of `type` with `typing.Self` and type aliases * Use overloads for `Field` and `PrivateAttr` functions * Clean up the `mypy` plugin implementation * Properly check for `typing_extensions` variant of `TypeAliasType` * Allow any mapping in `BaseModel.model_copy()` * Fix `isinstance` behavior for urls * Ensure `cached_property` can be set on Pydantic models * Fix equality checks for primitives in literals * Properly enforce `host_required` for URLs * Fix when `coerce_numbers_to_str` enabled and string has invalid Unicode character * Fix serializing `complex` values in `Enum`s * Refactor `_typing_extra` module * Support intuitive equality for urls * Add `bytearray` to `TypeAdapter.validate_json` signature * Ensure class access of method descriptors is performed when used as a default with `Field` * Fix circular import with `validate_call` * Fix error when using type aliases referencing other type aliases * Fix `IncEx` type alias to be compatible with mypy * Make `__signature__` a lazy property, do not deepcopy defaults * Make `__signature__` lazy for dataclasses, too * Subclass all single host url classes from `AnyUrl` to preserve behavior from v2.9 @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.23 2024/09/19 15:05:53 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.10.0.tar.gz) = d8f5e4c0948523a5238c0dc597db9d1895152c5a7bae564a9a26457f0fc81785 SHA512 (pydantic-2.10.0.tar.gz) = a50d5dfd8c9dd565a432744ff2f31a697d9d0ea6d1d71a69f973f45e75156413937c302f24af34736fbd566f391fcb1e94ab7a06884465cbfa0659ba2f15f117 Size (pydantic-2.10.0.tar.gz) = 781980 bytes @ 1.23 log @py-pydantic: updated to 2.9.2 v2.9.2 (2024-09-17) Fixes * Do not error when trying to evaluate annotations of private attributes * Adding notes on designing sound `Callable` discriminators * Fix serialization schema generation when using `PlainValidator` * Fix `Union` serialization warnings * Fix variance issue in `_IncEx` type alias, only allow `True` * Fix `ZoneInfo` validation with various invalid types @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.22 2024/09/09 16:51:29 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.9.2.tar.gz) = 355cda0c1e71922893ca0486e941808c9452244224652c4a1dfb8c536100cb1f SHA512 (pydantic-2.9.2.tar.gz) = 2aace9e79a98bd94e5dc626736a245051912a11fdce36013d2ad2f96b266052386a3e12b259dca30ddc38b63c6b00b5bcc9cd5e80f7805de4d8701064f0982aa Size (pydantic-2.9.2.tar.gz) = 769917 bytes @ 1.22 log @py-pydantic: updated to 2.9.1 v2.9.1 Fix Predicate issue in v2.9.0 Fixing annotated-types bound to >=0.6.0 Turn tzdata install requirement into optional timezone dependency Fix IncExc type alias definition Use correct types namespace when building namedtuple core schemas Fix evaluation of stringified annotations during namespace inspection Fix tagged union serialization with alias generators @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.21 2024/09/07 05:34:24 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.9.1.tar.gz) = d15e7eee08b116a58d75038a8821c7642de8400f0a8f063010f1b80f69ff9a6e SHA512 (pydantic-2.9.1.tar.gz) = b35241a0956f41bfcb9f61f34a5fead2c88a266a721d0dea584068f58c72fceda1a70236ca1f3c242c9ef22ac8f7e444b48e212088a3e7e7754008652a028664 Size (pydantic-2.9.1.tar.gz) = 768511 bytes @ 1.21 log @py-pydantic: updated to 2.9.0 v2.9.0 (2024-09-05) Packaging * Bump `ruff` to `v0.5.0` and `pyright` to `v1.1.369` * Bump `pydantic-extra-types` to `v2.9.0` * Support compatibility with `pdm v2.18.1` * Bump `v1` version stub to `v1.10.18` * Bump `pydantic-core` to `v2.23.2` New Features * Add support for `ZoneInfo` * Add `Config.val_json_bytes` * Add DSN for Snowflake * Support `complex` number * Add support for `annotated_types.Not` * Allow `WithJsonSchema` to inject `$ref`s w/ `http` or `https` links * Allow validators to customize validation JSON schema * Support parametrized `PathLike` types * Add tagged union serializer that attempts to use `str` or `callable` discriminators to select the correct serializer Changes * Breaking Change: Merge `dict` type `json_schema_extra` * For more info (how to replicate old behavior) on this change, see [here](https://docs.pydantic.dev/dev/concepts/json_schema/#merging-json_schema_extra) * Refactor annotation injection for known (often generic) types * Move annotation compatibility errors to validation phase * Improve runtime errors for string constraints like `pattern` for incompatible types * Remove `'allOf'` JSON schema workarounds * Remove `typed_dict_cls` data from `CoreMetadata` * Deprecate passing a dict to the `Examples` class * Remove `initial_metadata` from internal metadata construct * Use `re.Pattern.search` instead of `re.Pattern.match` for consistency with `rust` behavior * Show value of wrongly typed data in `pydantic-core` serialization warning * Breaking Change: in `pydantic-core`, change `metadata` type hint in core schemas from `Any` -> `Dict[str, Any] | None` * Raise helpful warning when `self` isn't returned from model validator Performance * Initial start at improving import times for modules, using caching primarily * Using cached internal import for `BaseModel` * Simplify internal generics logic - remove generator overhead * Remove default module globals from types namespace * Performance boost: skip caching parent namespaces in most cases * Update ns stack with already copied ns @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.20 2024/07/04 11:24:20 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.9.0.tar.gz) = 2ccb1f07b03c09453f3a10e5131552697f9f2c2b078af9684a7f61c81a162597 SHA512 (pydantic-2.9.0.tar.gz) = e4e2b961e831c1461446c1914176a5fca4b573ed5df7a4e5f1fe956b94568bf982e0ed0ee3ab8e08b518817b40dc76a24aaff95453a25e736890e5f0b30549d9 Size (pydantic-2.9.0.tar.gz) = 768298 bytes @ 1.20 log @py-pydantic: updated to 2.8.2 v2.8.2 Fixes Fix issue with assertion caused by pluggable schema validator v2.8.1 Packaging Bump ruff to v0.5.0 and pyright to v1.1.369 Bump pydantic-core to v2.20.1, pydantic-extra-types to v2.9.0 Fixes Fix breaking change in to_snake from v2.7 -> v2.8 Fix list constraint json schema application Support time duration more than 23 Fix millisecond fraction being handled with the wrong scale Handle negative fractional durations correctly v2.8.0 Packaging Update citation version automatically with new releases Bump pyright to v1.1.367 and add type checking tests for pipeline API Update pydantic.v1 stub to v1.10.17 General package updates to prep for v2.8.0b1 Bump pydantic-core to v2.20.0 Add support for Python 3.13 Update pdm version used for pdm.lock to v2.16.1 Update to ruff v0.4.8 New Features Experimental: support defer_build for TypeAdapter Implement deprecated field in json schema Experimental: Add pipeline API Add support for programmatic title generation Implement fail_fast feature Add ser_json_inf_nan='strings' mode to produce valid JSON Changes Add warning when "alias" is set in ignored Annotated field Support serialization of some serializable defaults in JSON schema Relax type specification for __validators__ values in create_model Breaking Change: Improve smart union matching logic You can read more about our smart union matching logic here. In some cases, if the old behavior is desired, you can switch to left-to-right mode and change the order of your Union members. @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.19 2024/06/12 15:13:50 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.8.2.tar.gz) = a027d8fd0629027339649f37a59cd5b92b3ad8b4a197b6bfe1d040baa4c0b4c1 SHA512 (pydantic-2.8.2.tar.gz) = 9d3b795ee43ccc4976a07c3770769758f023cc6763b8ef9ce4475d22c49d4dba80c8326d42106075b54a5d82c84722735e6017644755672b0f1cb0a4b624340a Size (pydantic-2.8.2.tar.gz) = 739834 bytes @ 1.19 log @py-pydantic: updated to 2.7.4 v2.7.4 (2024-06-12) Packaging * Bump `pydantic.v1` to `v1.10.16` reference Fixes * Specify `recursive_guard` as kwarg in `FutureRef._evaluate` @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.18 2024/06/06 05:20:10 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.7.4.tar.gz) = 55948873b42f9e1e97b7709174c752171eb69798b86def051ca475b5c0904662 SHA512 (pydantic-2.7.4.tar.gz) = 9a36041a24306761f2528aaca196d0b3e160cf46d71596fcd3df0169b9dd68ce810b88bcbe15dc9c0126551d0d7e33e4c3014b97daaf5d68ce68c0f8d6ffaf81 Size (pydantic-2.7.4.tar.gz) = 714127 bytes @ 1.18 log @py-pydantic: updated to 2.7.3 v2.7.3 (2024-06-03) Packaging * Bump `pydantic-core` to `v2.18.4` Fixes * Fix u style unicode strings in python @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.17 2024/05/29 07:30:39 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.7.3.tar.gz) = 01fd273cca5fccc3de4abfb2392138b2b1a18022caf2a43657116858eb1e3f5a SHA512 (pydantic-2.7.3.tar.gz) = 6d43e741444036acd38094e73966bf98fa318512a5b54774a08fa6bfc94f500a2448d9e96ebc76741a3f30a6cd86b96aa8fd98acabe2846744a0b443502d99a4 Size (pydantic-2.7.3.tar.gz) = 714386 bytes @ 1.17 log @py-pydantic: updated to 2.7.2 v2.7.2 Packaging Bump pydantic-core to v2.18.3 Fixes Replace __spec__.parent with __package__ Fix validation of ints with leading unary minus Fix str subclass validation for enums Support BigInts in Literals and Enums Fix: uuid - allow str subclass as input @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.16 2024/04/24 12:43:18 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.7.2.tar.gz) = 2b007500074b40824f6585894cda1147d01185804ebcb84fb32ef2654b67ca9e SHA512 (pydantic-2.7.2.tar.gz) = 0ef9932afb1a57cf79bbd4a877cf002384f18cf32a7132a9913642ac6d273284d0bc7f8d8fc66361e61a0584cf38ef4630d68755567878f6f907cde0d9e9bdc1 Size (pydantic-2.7.2.tar.gz) = 714293 bytes @ 1.16 log @py-pydantic: updated to 2.7.1 v2.7.1 Packaging Bump pydantic-core to v2.18.2 New Features Ftp and Websocket connection strings support Changes Use field description for RootModel schema description when there is … Fixes Fix validation_alias behavior with model_construct for AliasChoices and AliasPath Revert typing.Literal and import it outside the TYPE_CHECKING block Fix Secret serialization schema, applicable for unions Fix strict application to function-after with use_enum_values Address case where model_construct on a class which defines model_post_init fails with AttributeError Fix model_json_schema with config types Support multiple zeros as an int Fix validation of ints with leading unary plus Fix interaction between extra != 'ignore' and from_attributes=True Handle error from Enum's missing function as ValidationError Fix memory leak with Iterable validation @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.15 2024/04/18 12:26:55 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.7.1.tar.gz) = ec818a9307364ef4ecb62fcd9e480e606150695c5ec78464c3704c0535b6da9e SHA512 (pydantic-2.7.1.tar.gz) = 6b85c37384629e3df5f2b58e39ee9bf67f902b1ad2b05eb1298f03da8a945fc8f0865408948ad5deef76ca1d014f360ba778d4d957b6e7e158d2aa5c22861bd9 Size (pydantic-2.7.1.tar.gz) = 713923 bytes @ 1.15 log @py-pydantic: updated to 2.7.0 v2.7.0 (2024-04-11) Packaging * Reorganize `pyproject.toml` sections * Bump `pydantic-core` to `v2.18.1` * Adopt `jiter` `v0.2.0` New Features * Extract attribute docstrings from `FieldInfo.description` * Add a `with_config` decorator to comply with typing spec * Allow an optional separator splitting the value and unit of the result of `ByteSize.human_readable` * Add generic `Secret` base type * Make use of `Sphinx` inventories for cross references in docs * Add environment variable to disable plugins * Add support for `deprecated` fields * Allow `field_serializer('*')` * Handle a case when `model_config` is defined as a model property * Update `create_model()` to support `typing.Annotated` as input * Add `ClickhouseDsn` support * Add support for `re.Pattern[str]` to `pattern` field * Support for `serialize_as_any` runtime setting * Add support for `typing.Self` * Ability to pass `context` to serialization * Add feedback widget to docs with flarelytics integration * Support for parsing partial JSON strings in Python **Finalized in v2.7.0, rather than v2.7.0b1:** * Add support for field level number to str coercion option * Update `warnings` parameter for serialization utilities to allow raising a warning Changes * Correct docs, logic for `model_construct` behavior with `extra` * Improve error message for improper `RootModel` subclasses * Use `PEP570` syntax * Add `enum` and `type` to the JSON schema for single item literals * Deprecate `update_json_schema` internal function * Serialize duration to hour minute second, instead of just seconds * Trimming str before parsing to int and float Performance * `enum` validator improvements * Move `enum` validation and serialization to Rust * Improve schema generation for nested dataclasses * Fast path for ASCII python string creation in JSON * SIMD integer and string JSON parsing on `aarch64`(**Note:** SIMD on x86 will be implemented in a future release) * Support JSON `Cow` from `jiter` * MAJOR performance improvement: update to PyO3 0.21 final * cache Python strings Fixes * Fix strict parsing for some `Sequence`s * Add a check on the existence of `__qualname__` * Handle `__pydantic_extra__` annotation being a string or inherited * Fix json validation for `NameEmail` * Fix type-safety of attribute access in `BaseModel` * Fix bug with `mypy` plugin and `no_strict_optional = True` * Fix `ByteSize` error `type` change * Fix inheriting annotations in dataclasses * Fix regression in core schema generation for indirect definition references * Fix unsupported types bug with plain validator * Reverting problematic fix from 2.6 release, fixing schema building bug * fixes `__pydantic_config__` ignored for TypeDict * Fix test failures with `pytest v8.0.0` due to `pytest.warns()` starting to work inside `pytest.raises()` * Use `is_valid_field` from 1.x for `mypy` plugin * Better-support `mypy` strict equality flag * model_json_schema export with Annotated types misses 'required' parameters * Fix default inclusion in `FieldInfo.__repr_args__` * Fix resolution of forward refs in dataclass base classes that are not present in the subclass module namespace * Fix `BaseModel` type annotations to be resolvable by `typing.get_type_hints` * Fix: allow empty string aliases with `AliasGenerator` * Fix test along with `date` -> `datetime` timezone assumption fix * Fix deprecation warning with usage of `ast.Str` * Add missing `deprecated` decorators * Fix serialization of `NameEmail` if name includes an email address * Add information about class in error message of schema generation * Make `TypeAdapter`'s typing compatible with special forms * Fix issue with config behavior being baked into the ref schema for `enum`s * More helpful error re wrong `model_json_schema` usage * Fix nested discriminated union schema gen, pt 2 * Fix schema build for nested dataclasses / TypedDicts with discriminators * Remove unnecessary logic for definitions schema gen with discriminated unions * Fix handling of optionals in `mypy` plugin * Fix `PlainSerializer` usage with std type constructor * Remove unnecessary warning for config in plugin * Fix default value serializing * Fix extra fields check in `Model.__getattr__()` * Fix `ClassVar` forward ref inherited from parent class * fix sequence like validator with strict `True` * Improve warning message when a field name shadows a field in a parent model * Do not warn about shadowed fields if they are not redefined in a child class * Fix discriminated union bug with unsubstituted type var * Support serialization of `deque` when passed to `Sequence[blah blah blah]` * Init private attributes from super-types in `model_post_init` * fix `model_construct` with `validation_alias` * Ensure json-schema generator handles `Literal` `null` types * **Fixed in v2.7.0**: Fix allow extra generic @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.14 2024/03/17 12:53:53 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.7.0.tar.gz) = 21401785160edc48225cec214dcd9aa2391ecf013a4be6c4f27fb7a6ee49d6ff SHA512 (pydantic-2.7.0.tar.gz) = 06254a99456a999dd5b165c032e3d5fb48a59d56beb51c1ff77d2dbf181bc2b535801307adf00f3547d5f60fd868ead8d6baf507564c52e09e1efe04c155aeb9 Size (pydantic-2.7.0.tar.gz) = 710409 bytes @ 1.14 log @py-pydantic: updated to 2.6.4 v2.6.4 (2024-03-08) Fixes * Fix usage of `AliasGenerator` with `computed_field` decorator * Fix nested discriminated union schema gen, pt 2 * Fix bug with no_strict_optional=True caused by API deferral @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.13 2024/02/28 08:15:30 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.6.4.tar.gz) = 16a185a65f45e64cc2b1148a124279eedad535e8d9e2d1edb9c2e7d38cb4cc4b SHA512 (pydantic-2.6.4.tar.gz) = 9386c2e04ff71bc182be4892d1cdb910ca60ee68b7cc5c6e86a58529b51707094532dc5315bf152b147979bace3d2e4f6bb4fed546e16fe27b5ecd35c7d0541a Size (pydantic-2.6.4.tar.gz) = 680828 bytes @ 1.13 log @py-pydantic: updated to 2.6.3 v2.6.3 (2024-02-27) Packaging * Update `pydantic-settings` version in the docs Fixes * Fix discriminated union schema gen bug @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.12 2024/02/25 22:55:41 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.6.3.tar.gz) = 89c3e7d774d6f1bc772ab48173c95102facf34867295c5d806003857eda1d95a SHA512 (pydantic-2.6.3.tar.gz) = 2eca898328beb1f33e343d3aa7edf8847baae0569d078507a58bbe0fcf355250c72b70a33f6b79cef697f41ced91eaeee1ffc4a7712fd6fd251fd64557e390d0 Size (pydantic-2.6.3.tar.gz) = 680427 bytes @ 1.12 log @py-pydantic: updated to 2.6.2 v2.6.2 (2024-02-23) Packaging Upgrade to pydantic-core 2.16.3 Fixes 'YYYY-MM-DD' date string coerced to datetime shouldn't infer timezone @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.11 2024/02/05 21:20:27 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.6.2.tar.gz) = ef5809b477ea94eb48bb4a9e84e3cdf15ce8c0eba957fa2cdbb3a9ebf1e497fe SHA512 (pydantic-2.6.2.tar.gz) = dc96ca3639305e4e166a74aa2e445758c049fa76ca3a2a3036267b394a5f46037e3f9da637b20b715f6e27c8733d6e74b1c51a58d2aa624f1de982e4c5788301 Size (pydantic-2.6.2.tar.gz) = 679956 bytes @ 1.11 log @py-pydantic: updated to 2.6.1 v2.6.1 (2024-02-05) Packaging * Upgrade to `pydantic-core` 2.16.2 Fixes * Fix bug with `mypy` plugin and `no_strict_optional = True` * Fix `ByteSize` error `type` change * Fix inheriting `Field` annotations in dataclasses * Fix regression in core schema generation for indirect definition references * Fix unsupported types bug with `PlainValidator` * Reverting problematic fix from 2.6 release, fixing schema building bug * Fix warning for tuple of wrong size in `Union` * Fix `computed_field` JSON serializer `exclude_none` behavior @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.10 2024/01/31 00:03:49 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.6.1.tar.gz) = 1bffb6df7e675316ebfa8da3836511ad1f940faa382a5fc054130f9e8040fbde SHA512 (pydantic-2.6.1.tar.gz) = 89a202165950ab741eac8441eb6c014dab50474bd4d001f90a32cff55b1b6bf36433d4ae11df8ab5e51bbcf68efb9674cece9a512c1d85f428e13fb59e2ae2c0 Size (pydantic-2.6.1.tar.gz) = 679826 bytes @ 1.10 log @py-pydantic: updated to 2.6.0 v2.6.0 (2024-01-23) The code released in v2.6.0 is practically identical to that of v2.6.0b1. What's Changed Packaging * Check for `email-validator` version >= 2.0 * Upgrade `ruff`` target version to Python 3.8 * Update to `pydantic-extra-types==2.4.1` * Update to `pyright==1.1.345` * Update pydantic-core from 2.14.6 to 2.16.1, significant changes from these updates are described below, full changelog [here](https://github.com/pydantic/pydantic-core/compare/v2.14.6...v2.16.1) New Features * Add `NatsDsn` * Add `ConfigDict.ser_json_inf_nan` * Add `types.OnErrorOmit` * Support `AliasGenerator` usage * Add Pydantic People Page to docs * Support `yyyy-MM-DD` datetime parsing * Added bits conversions to the `ByteSize` * Enable json schema creation with type `ByteSize` * Add `eval_type_backport` to handle union operator and builtin generic subscripting in older Pythons * Add support for `dataclass` fields `init` * Implement pickling for `ValidationError` * Add unified tuple validator that can handle "variadic" tuples via PEP-646 Changes * Drop Python3.7 support * Drop Python 3.7, and PyPy 3.7 and 3.8 * Use positional-only `self` in `BaseModel` constructor, so no field name can ever conflict with it * Make `@@validate_call` return a function instead of a custom descriptor - fixes binding issue with inheritance and adds `self/cls` argument to validation errors * Exclude `BaseModel` docstring from JSON schema description * Introducing `classproperty` decorator for `model_computed_fields` * Explicitly raise an error if field names clashes with types * Use stricter serializer for unions of simple types Performance * Add Codspeed profiling Actions workflow * Improve `int` extraction * Improve performance of recursion guard * `dataclass` serialization speedups * Avoid `HashMap` creation when looking up small JSON objects in `LazyIndexMaps` * use hashbrown to speedup python string caching * Replace `Peak` with more efficient `Peek` Fixes * Move `getattr` warning in deprecated `BaseConfig` * Only hash `model_fields`, not whole `__dict__` * Fix mishandling of unions while freezing types in the `mypy` plugin * Fix `mypy` error on untyped `ClassVar` * Only compare pydantic fields in `BaseModel.__eq__` instead of whole `__dict__` * Update `strict` docstring in `model_validate` method. * Fix overload position of `computed_field` * Fix custom type type casting used in multiple attributes * Fix issue not allowing `validate_call` decorator to be dynamically assigned to a class method * Fix issue `unittest.mock` deprecation warnings * Added tests for the case `JsonValue` contains subclassed primitive values * Fix `mypy` error on free before validator (classmethod) * Fix `to_snake` conversion * Fix type annotation of `ModelMetaclass.__prepare__` * Disallow `config` specification when initializing a `TypeAdapter` when the annotated type has config already * Fix a naming issue with JSON schema for generics parametrized by recursive type aliases * Fix type annotation in pydantic people script * Add support for field `alias` in `dataclass` signature * Fix bug with schema generation with `Field(...)` in a forward ref * Fix ordering of keys in `__dict__` with `model_construct` call * Fix module `path_type` creation when globals does not contain `__name__` * Fix for namespace issue with dataclasses with `from __future__ import annotations` * Fix: make function validator types positional-only * Fix usage of `@@deprecated` * Add more support for private attributes in `model_construct` call * Use a stack for the types namespace * Fix schema-building bug with `TypeAliasType` for types with refs * Support `pydantic.Field(repr=False)` in dataclasses * Override `dataclass_transform` behavior for `RootModel` * Refactor signature generation for simplicity * Fix ordering bug of PlainValidator annotation * Fix `exclude_none` for json serialization of `computed_field`s * Support yyyy-MM-DD string for datetimes * Tweak ordering of definitions in generated schemas @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.9 2023/06/09 09:39:32 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-2.6.0.tar.gz) = 46f71a38617bcc3f3037681e71282e5a85851a4b7b5d63b783877a4cc03000ad SHA512 (pydantic-2.6.0.tar.gz) = 5d3912f2b388ea49ba853b6463478c0fbf15ea67877291198ef69b4dc6f037215e62dc872e62ad6152ce02de0d809c89dcd11b5b0c94e668f15eb559a3d8a536 Size (pydantic-2.6.0.tar.gz) = 677208 bytes @ 1.9 log @py-pydantic: updated to 1.10.9 v1.10.9 (2023-06-07) * Fix trailing zeros not ignored in Decimal validation, * Fix mypy plugin for v1.4.0, * Add future and past date hypothesis strategies, * Discourage usage of Cython 3 with Pydantic 1.x @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.8 2023/05/29 18:00:36 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-1.10.9.tar.gz) = a369468546417ebf3b78a83811a5f130f9a76386acc6bb466c13e1758ab764e5 SHA512 (pydantic-1.10.9.tar.gz) = a9fe364a225dfb2f9bea4beb61996590dcef0347ce94454addf25713a0c1549298176eff0fc865f5465b82e93e15f6163ce125cf6aadfc754ca81d008efc7af2 Size (pydantic-1.10.9.tar.gz) = 346247 bytes @ 1.8 log @py-pydantic: updated to 1.10.8 v1.10.8 (2023-05-23) * Fix a bug in `Literal` usage with `typing-extension==4.6.0` * Update email-validator dependency to >=2.0.0post2 * update `AnyClassMethod` for changes @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.7 2023/04/04 11:21:37 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-1.10.8.tar.gz) = c6f7ac204fef1b7ff772ad6f65ce9ba39d7046558df3ee6ac0bfda7a52ac4d42 SHA512 (pydantic-1.10.8.tar.gz) = c0ecd47ef4ca9f82d168a00bce38b55f8b0da4279c6f3830ad6a5beef95c1bd1faedd1a01835b37ad4f2ecd26a489d521f50e8ec6905223683c9b3a72283c7f7 Size (pydantic-1.10.8.tar.gz) = 345301 bytes @ 1.7 log @py-pydantic: updated to 1.10.7 v1.10.7 (2023-03-22) * Fix creating schema from model using `ConstrainedStr` with `regex` as dict key * Address bug in mypy plugin caused by explicit_package_bases=True * Add implicit defaults in the mypy plugin for Field with no default argument * Fix schema generated for Enum values used as Literals in discriminated unions * Fix mypy failures caused by the pydantic mypy plugin when users define `from_orm` in their own classes * Fix `InitVar` usage with pydantic dataclasses, mypy version `1.1.1` and the custom mypy plugin @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.6 2023/03/09 05:33:49 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-1.10.7.tar.gz) = 7779c67d92066f82d2a9464e92a8934af7dc8a9d206b2b4e9a558cb338c44947 SHA512 (pydantic-1.10.7.tar.gz) = 7210637461317d869cd93041158f870dbbacc1e08a5c624b59d80abb365ddac311fe837e50961c7ee0cdba169a999228c7df0941b639fd07343fd2701ed5c492 Size (pydantic-1.10.7.tar.gz) = 344063 bytes @ 1.6 log @py-pydantic: updated to 1.10.6 v1.10.6 (2023-03-08) * Implement logic to support creating validators from non standard callables by using defaults to identify them and unwrapping `functools.partial` and `functools.partialmethod` when checking the signature * Fix mypy plugin for v1.1.1, and fix `dataclass_transform` decorator for pydantic dataclasses * Raise `ValidationError`, not `ConfigError`, when a discriminator value is unhashable @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.5 2023/02/18 21:02:40 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-1.10.6.tar.gz) = 0f1081f2a81a3bfe4c49b7209e9d86e4e616e224d6b15f6b4f6b5ec47c6f7163 SHA512 (pydantic-1.10.6.tar.gz) = e8dd4dd11f2203efb2c3700e7547b1a1547d7d027c7d6d44623293cd38663b152b9941af83fde83911a82161a4a432d01831d523d98f67eee7cd39cbb46753ac Size (pydantic-1.10.6.tar.gz) = 342198 bytes @ 1.5 log @py-pydantic: updated to 1.10.5 v1.10.5 * Fix broken parametrized bases handling with `GenericModel`s with complex sets of models * Invalidate mypy cache if plugin config changes * Fix `RecursionError` when deep-copying dataclass types wrapped by pydantic * Fix `X | Y` union syntax breaking `GenericModel` * Switch coverage badge to show coverage for this branch/release @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.4 2023/01/02 13:15:56 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-1.10.5.tar.gz) = fcaa9857c802c344fb5565df81d6dee90472e415fcdb26d8fcbc7c21c947b22c SHA512 (pydantic-1.10.5.tar.gz) = 15ae8fc55ebe9ddbcb511a205ff9af0ca4ccf65aa4244458d0806f4e468539ad2f812f530e9fd955e1e3d4bfb145c1a21e1d525c5f9e7d8c61dab743429242f4 Size (pydantic-1.10.5.tar.gz) = 340549 bytes @ 1.4 log @py-pydantic: updated to 1.10.4 v1.10.4 (2022-12-30) * Change dependency to `typing-extensions>=4.2.0`, v1.10.3 (2022-12-29) **NOTE: v1.10.3 was ["yanked"](https://pypi.org/help/#yanked) from PyPI due to * fix parsing of custom root models, * fix: use dataclass proxy for frozen or empty dataclasses, * Fix `schema` and `schema_json` on models where a model instance is a one of default values, * Add Jina AI to sponsors on docs index page, * fix: support assignment on `DataclassProxy`, * Add `postgresql+psycopg` as allowed scheme for `PostgreDsn` to make it usable with SQLAlchemy 2, * Allow dict schemas to have both `patternProperties` and `additionalProperties`, * Fixes error passing None for optional lists with `unique_items`, * Fix `GenericModel` with `Callable` param raising a `TypeError`, * Fix field regex with `StrictStr` type annotation, * Correct `dataclass_transform` keyword argument name from `field_descriptors` to `field_specifiers`, * fix: avoid multiple calls of `__post_init__` when dataclasses are inherited, * Reduce the size of binary wheels @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.3 2022/10/25 09:15:04 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-1.10.4.tar.gz) = fc62d758cc2ce48ca423f9bffca4b2b37d3063f378034d3f34577169137036ef SHA512 (pydantic-1.10.4.tar.gz) = 335316f67e69a7c7bc229fe5667c099091b910de9ed579623b10e76bff49ce9d48fd6e804d456c7e82c1e12b7b51bbfa78a1944fba1f5506348cdad2a4df3f43 Size (pydantic-1.10.4.tar.gz) = 338830 bytes @ 1.3 log @py-pydantic: updated to 1.10.2 v1.10.2 (2022-09-05) * **Revert Change:** Revert percent encoding of URL parts which was originally added in * Prevent long (length > `4_300`) strings/bytes as input to int fields, see [CVE-2020-10735](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735), * fix: dataclass wrapper was not always called, * Use `tomllib` on Python 3.11 when parsing `mypy` configuration, * Basic fix of `GenericModel` cache to detect order of arguments in `Union` models, * Fix mypy plugin when using bare types like `list` and `dict` as `default_factory`, v1.10.1 (2022-08-31) * Add `__hash__` method to `pydancic.color.Color` class, v1.10.0 (2022-08-30) * Refactor the whole _pydantic_ `dataclass` decorator to really act like its standard lib equivalent. It hence keeps `__eq__`, `__hash__`, ... and makes comparison with its non-validated version possible. It also fixes usage of `frozen` dataclasses in fields and usage of `default_factory` in nested dataclasses. The support of `Config.extra` has been added. Finally, config customization directly via a `dict` is now possible,

**BREAKING CHANGES:** - The `compiled` boolean (whether _pydantic_ is compiled with cython) has been moved from `main.py` to `version.py` - Now that `Config.extra` is supported, `dataclass` ignores by default extra arguments (like `BaseModel`) * Fix PEP487 `__set_name__` protocol in `BaseModel` for PrivateAttrs, * Allow for custom parsing of environment variables via `parse_env_var` in `Config`, * Rename `master` to `main`, * Fix `StrictStr` does not raise `ValidationError` when `max_length` is present in `Field`, * Make `SecretStr` and `SecretBytes` hashable, * Fix `StrictBytes` does not raise `ValidationError` when `max_length` is present in `Field`, * Add support for bare `type`, * Support Python 3.11, including binaries for 3.11 in PyPI, * Add support for `re.Pattern`, * Fix `__post_init_post_parse__` is incorrectly passed keyword arguments when no `__post_init__` is defined, * Fix implicitly importing `ForwardRef` and `Callable` from `pydantic.typing` instead of `typing` and also expose `MappingIntStrAny`, * remove `Any` types from the `dataclass` decorator so it can be used with the `disallow_any_expr` mypy option, * moved repo to `pydantic/pydantic`, * fix "extra fields not permitted" error when dataclass with `Extra.forbid` is validated multiple times, * Add Python 3.9 and 3.10 examples to docs, * Discriminated union models now use `oneOf` instead of `anyOf` when generating OpenAPI schema definitions, * Allow type checkers to infer inner type of `Json` type. `Json[list[str]]` will be now inferred as `list[str]`, `Json[Any]` should be used instead of plain `Json`. Runtime behaviour is not changed, * Allow empty string aliases by using a `alias is not None` check, rather than `bool(alias)`, * Update `ForwardRef`s in `Field.outer_type_`, * The use of `__dataclass_transform__` has been replaced by `typing_extensions.dataclass_transform`, which is the preferred way to mark pydantic models as a dataclass under [PEP 681](https://peps.python.org/pep-0681/), * Use parent model's `Config` when validating nested `NamedTuple` fields, * Update `BaseModel.construct` to work with aliased Fields, * Catch certain raised errors in `smart_deepcopy` and revert to `deepcopy` if so, * Add `Config.anystr_upper` and `to_upper` kwarg to constr and conbytes, * Fix JSON schema for `set` and `frozenset` when they include default values, * Teach the mypy plugin that methods decorated by `@@validator` are classmethods, * Improve mypy plugin's ability to detect required fields, * Support fields of type `Type[]` in schema, * Add `default` value in JSON Schema when `const=True`, * Adds reserved word check to signature generation logic, * Fix Json strategy failure for the complex nested field, * Add JSON-compatible float constraint `allow_inf_nan`, * Remove undefined behaviour when `env_prefix` had characters in common with `env_nested_delimiter`, * Support generics model with `create_model`, * allow submodels to overwrite extra field info, * Document and test structural pattern matching ([PEP 636](https://peps.python.org/pep-0636/)) on `BaseModel`, * Fix incorrect deserialization of python timedelta object to ISO 8601 for negative time deltas. Minus was serialized in incorrect place ("P-1DT23H59M59.888735S" instead of correct "-P1DT23H59M59.888735S"), * Fix validation of discriminated union fields with an alias when passing a model instance, * Add a CockroachDsn type to validate CockroachDB connection strings. The type supports the following schemes: `cockroachdb`, `cockroachdb+psycopg2` and `cockroachdb+asyncpg`, * Fix MyPy plugin to not override pre-existing `__init__` method in models, * Fix mypy version checking, * support overwriting dunder attributes of `BaseModel` instances, * Added `ConstrainedDate` and `condate`, * Support `kw_only` in dataclasses, * Add comparison method for `Color` class, * Drop support for python3.6, associated cleanup, * created new function `to_lower_camel()` for "non pascal case" camel case, * Add checks to `default` and `default_factory` arguments in Mypy plugin, * fix mangling of `inspect.signature` for `BaseModel`, * Adds the `SecretField` abstract class so that all the current and future secret fields like `SecretStr` and `SecretBytes` will derive from it, * Support multi hosts validation in `PostgresDsn`, * Fix parsing of very small numeric timedelta values, * Update `SecretsSettingsSource` to respect `config.case_sensitive`, * Add MongoDB network data source name (DSN) schema, * Add support for multiple dotenv files, * Raise an explicit `ConfigError` when multiple fields are incorrectly set for a single validator, * Allow ellipsis on `Field`s inside `Annotated` for `TypedDicts` required, * Catch overflow errors in `int_validator`, * Adds a `__rich_repr__` method to `Representation` class which enables pretty printing with [Rich](https://github.com/willmcgugan/rich), * Add percent encoding in `AnyUrl` and descendent types, * `validate_arguments` decorator now supports `alias`, * Avoid `__dict__` and `__weakref__` attributes in `AnyUrl` and IP address fields, * Add ability to use `Final` in a field type annotation, * Update requirement to `typing_extensions>=4.1.0` to guarantee `dataclass_transform` is available, * Add Explosion and AWS to main sponsors, * Update documentation for `copy_on_model_validation` to reflect recent changes, * Runtime warning if `__slots__` is passed to `create_model`, `__slots__` is then ignored, * Add type hints to `BaseSettings.Config` to avoid mypy errors, also correct mypy version compatibility notice in docs @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.2 2022/08/23 11:20:40 adam Exp $ d3 3 a5 3 BLAKE2s (pydantic-1.10.2.tar.gz) = 4fe73f8eec2aecc1865a87c21cd01f2f4281eb22cb30c42766b92b325c857635 SHA512 (pydantic-1.10.2.tar.gz) = 2dbb9cb573c497f381a7ae115ad8f684e58943f5657e02a66aa0ea37923a6451d45c154558d4267088c0f7ce983907cc945efaf896544171329f4e0689af9be5 Size (pydantic-1.10.2.tar.gz) = 335713 bytes @ 1.2 log @py-pydantic: updated to 1.9.2 v1.9.2 (2022-08-11) **Revert Breaking Change**: _v1.9.1_ introduced a breaking change where model fields were deep copied by default, this release reverts the default behaviour to match _v1.9.0_ and before, while also allow deep-copy behaviour via `copy_on_model_validation = 'deep'`. * Allow for shallow copies of model fields, `Config.copy_on_model_validation` is now a str which must be `'none'`, `'deep'`, or `'shallow'` corresponding to not copying, deep copy & shallow copy; default `'shallow'` @ text @d1 1 a1 1 $NetBSD: distinfo,v 1.1 2022/07/24 10:48:25 gdt Exp $ d3 3 a5 3 BLAKE2s (pydantic-1.9.2.tar.gz) = c6380e829f2d41bbf557bee7ed74cd13cf826589526151c1a88cda2c72947167 SHA512 (pydantic-1.9.2.tar.gz) = 524595aea9401e82d2e985fdb5aa9b4a8b39edfed856d08e057695c786d65c3455991e4f57ce326902ff9cbed328bcb5e6f4133bda769fecea5affb68f3b4345 Size (pydantic-1.9.2.tar.gz) = 307957 bytes @ 1.1 log @Add py-pydantic 1.9.1 Data validation and settings management using Python type hints. Fast and extensible, *pydantic* plays nicely with your linters/IDE/brain. Define how data should be in pure, canonical Python 3.6+; validate it with *pydantic*. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 BLAKE2s (pydantic-1.9.1.tar.gz) = bc7e0630f9a1da84046e7ce9f4ff9b26ed5ab7f60c62688c5efb9b35c5655b57 SHA512 (pydantic-1.9.1.tar.gz) = 19d2a50ef054b76cc7e8756759f3d67a14a58614dd6ff1b4f60e73354b0028e08743aa3bb5944da7ae357ab279134d3685c454d6affa6524b267c7cd9a40375e Size (pydantic-1.9.1.tar.gz) = 306846 bytes @