|
|
|
|
Changelog for python311-pydantic1-1.10.14-4.1.noarch.rpm :
* Mon Jan 22 2024 Dirk Müller - update to 1.10.14: * Update install.md * Fixes ci to only deploy docs on release * Fix cached_property handling in dataclasses when copied * Thu Nov 16 2023 Dirk Müller - update to 1.10.13: * Fix: Add max length check to `pydantic.validate_email` * Docs: Fix pip commands to install v1 * Fixes the `maxlen` property being dropped on `deque` validation. Happened only if the deque item has been typed. Changes the `_validate_sequence_like` func, #6581 by * Importing create_model in tools.py through relative path instead of absolute path - so that it doesn\'t import V2 code when copied over to V2 branch, #6361 by AATTSharathHuddar * Add Pydantic `Json` field support to settings management, * Fixed literal validator errors for unhashable values * Fixed bug with generics receiving forward refs * Update install method of FastAPI for internal tests in CI, [#6117] by AATTKludex- add Fix-Python-3.12-test-failures.patch: fix test fails with Python 3.12 * Wed Jul 05 2023 Dirk Müller - update to 1.10.9: * 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 * Thu May 25 2023 Daniel Garcia - Update to v1.10.8 * Fix a bug in `Literal` usage with `typing-extension==4.6.0`, #5826 by AATThramezani * This solves the (closed) issue #3849 where aliased fields that use discriminated union fail to validate when the data contains the non-aliased field name, #5736 by AATTbenwah * Update email-validator dependency to >=2.0.0post2, #5627 by AATTadriangb * update `AnyClassMethod` for changes in [python/typeshed#9771](https://github.com/python/typeshed/issues/9771), [#5505] by AATTITProKyle * Mon Mar 27 2023 Dirk Müller - update to 1.10.7: * 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 * 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 * 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` * Thu Mar 16 2023 Daniel Garcia - Disable DeprecationWarning in tests to avoid error with the latest setuptools and pkg_resources deprecation * Mon Jan 02 2023 Dirk Müller - update to v1.10.4: * Change dependency to typing-extensions>=4.2.0, #4885 by AATTsamuelcolvin * fix parsing of custom root models, #4883 by AATTgou177 * fix: use dataclass proxy for frozen or empty dataclasses, #4878 by AATTPrettyWood * Fix schema and schema_json on models where a model instance is a one of default values, #4781 by AATTBobronium * Add Jina AI to sponsors on docs index page, #4767 by AATTsamuelcolvin * fix: support assignment on DataclassProxy, #4695 by AATTPrettyWood * Add postgresql+psycopg as allowed scheme for PostgreDsn to make it usable with SQLAlchemy 2, #4689 by AATTmorian * Allow dict schemas to have both patternProperties and additionalProperties, #4641 by AATTjparise * Fixes error passing None for optional lists with unique_items, #4568 by AATTmfulgo * Fix GenericModel with Callable param raising a TypeError, #4551 by AATTmfulgo * Fix field regex with StrictStr type annotation, #4538 by AATTsisp * Correct dataclass_transform keyword argument name from field_descriptors to field_specifiers, #4500 by AATTsamuelcolvin * fix: avoid multiple calls of __post_init__ when dataclasses are inherited, #4487 by AATTPrettyWood * Reduce the size of binary wheels, #2276 by AATTsamuelcolvin * Fri Sep 09 2022 Steve Kowalik - Update to 1.10.2: * Prevent long (length > 4_300) strings/bytes as input to int fields, see python/cpython#95778 and 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 * Add __hash__ method to pydancic.color.Color class * 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. * 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 * 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 * fix \"extra fields not permitted\" error when dataclass with Extra.forbid is validated multiple times * 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] * Allow empty string aliases by using a alias is not None check, rather than bool(alias) * 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 AATTvalidator are classmethods * Improve mypy plugin\'s ability to detect required fields * Support fields of type Type[] in schema * 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 * support overwriting dunder attributes of BaseModel instances * Support kw_only in dataclasses * Add comparison method for Color class * created new function to_lower_camel() for \"non pascal case\" camel case * Add checks to default and default_factory arguments in Mypy plugin * Fix parsing of very small numeric timedelta values * Update SecretsSettingsSource to respect config.case_sensitive * Add support for multiple dotenv files * Raise an explicit ConfigError when multiple fields are incorrectly set for a single validator * Allow ellipsis on Fields inside Annotated for TypedDicts required * Catch overflow errors in int_validator * validate_arguments decorator now supports alias * Add ability to use Final in a field type annotation * Update requirement to typing_extensions>=4.1.0 to guarantee dataclass_transform is available- Remove patch remove-pkg_resources.patch: * Included upstream.- Add patch ignore-urllib3-pyopenssl-warning.patch: * Ignore DeprecationWarning until requests-toolbelt is fixed.- Update {Build,}Requires to email-validator package. * Tue Jul 19 2022 Steve Kowalik - Add patch remove-pkg_resources.patch: * Use packaging, not pkg_resources for versions. * Sat Jun 18 2022 Michael Ströder - Update to 1.9.1 * Limit the size of generics._generic_types_cache and generics._assigned_parameters to avoid unlimited increase in memory usage, #4083 by AATTsamuelcolvin * Add Jupyverse and FPS as Jupyter projects using pydantic, #4082 by AATTdavidbrochart * Speedup __isinstancecheck__ on pydantic models when the type is not a model, may also avoid memory \"leaks\", #4081 by AATTsamuelcolvin * Fix in-place modification of FieldInfo that caused problems with PEP 593 type aliases, #4067 by AATTadriangb * Add support for autocomplete in VS Code via __dataclass_transform__ when using pydantic.dataclasses.dataclass, #4006 by AATTgiuliano-oliveira * Remove benchmarks from codebase and docs, #3973 by AATTsamuelcolvin * Typing checking with pyright in CI, improve docs on vscode/pylance/pyright, #3972 by AATTsamuelcolvin * Fix nested Python dataclass schema regression, #3819 by AATThimbeles * Update documentation about lazy evaluation of sources for Settings, #3806 by AATTgaryd203 * Prevent subclasses of bytes being converted to bytes, #3706 by AATTsamuelcolvin * Fixed \"error checking inheritance of\" when using PEP585 and PEP604 type hints, #3681 by AATTaleksul * Allow self referencing ClassVars in models, #3679 by AATTsamuelcolvin * Fix issue with self-referencing dataclass, #3675 by AATTuriyyo * Include non-standard port numbers in rendered URLs, #3652 by AATTdolfinus * Config.copy_on_model_validation does a deep copy and not a shallow one, #3641 by AATTPrettyWood * fix: clarify that discriminated unions do not support singletons, #3636 by AATTtommilligan * Add read_text(encoding=\'utf-8\') for setup.py, #3625 by AATThswong3i * Fix JSON Schema generation for Discriminated Unions within lists, #3608 by AATTsamuelcolvin * Wed Feb 02 2022 Steve Kowalik - Skip some truculent tests.- Clean up non-required Python 3.6 {Build,}Requires. * Wed Jan 05 2022 Ben Greiner - Update to 1.9.0 * add python 3.10 support, #2885 by AATTPrettyWood * Discriminated unions, #619 by AATTPrettyWood * Config.smart_union for better union logic, #2092 by AATTPrettyWood * Binaries for Macos M1 CPUs, #3498 by AATTsamuelcolvin * Complex types can be set via nested environment variables, e.g. foo___bar, #3159 by AATTAir-Mark * add a dark mode to pydantic documentation, #2913 by AATTgbdlin * Add support for autocomplete in VS Code via __dataclass_transform__, #2721 by AATTtiangolo * Add \"exclude\" as a field parameter so that it can be configured using model config, #660 by AATTdaviskirk- Full changelog in HISTORY.md * Thu May 13 2021 Markéta Machová - Update to 1.8.2 (bsc#1186019, CVE-2021-29510) * Security fix: Fix date and datetime parsing so passing either \'infinity\' or float(\'inf\') (or their negative values) does not cause an infinite loop * Allow passing json_encoders in class kwargs * support arbitrary types with custom __eq__ * Hypothesis plugin for testing * support for NamedTuple and TypedDict * Support Annotated hints on model fields * frozen parameter on Config to allow models to be hashed * Breaking Change, remove old deprecation aliases from v1 * Breaking Change: always validate only first sublevel items with each_item * many more changes, see upstream changelog * Fri Jan 08 2021 Markéta Machová - Update to 1.7.3 * python 3.9 support * Private model attributes * \"secrets files\" support in BaseSettings * convert stdlib dataclasses to pydantic dataclasses and use stdlib dataclasses in models * few bugfixes- Drop validate-config.patch
|
|
|