3859f30f38
- Disable DeprecationWarning in tests to avoid error with the latest setuptools and pkg_resources deprecation
Daniel Garcia2023-03-16 07:19:57 +00:00
d2e9009a4c
- Disable DeprecationWarning in tests to avoid error with the latest setuptools and pkg_resources deprecation
Daniel Garcia2023-03-16 07:19:57 +00:00
250101fc0c
- update to v1.10.4: * Change dependency to typing-extensions>=4.2.0, #4885 by @samuelcolvin * fix parsing of custom root models, #4883 by @gou177 * fix: use dataclass proxy for frozen or empty dataclasses, #4878 by @PrettyWood * Fix schema and schema_json on models where a model instance is a one of default values, #4781 by @Bobronium * Add Jina AI to sponsors on docs index page, #4767 by @samuelcolvin * fix: support assignment on DataclassProxy, #4695 by @PrettyWood * Add postgresql+psycopg as allowed scheme for PostgreDsn to make it usable with SQLAlchemy 2, #4689 by @morian * Allow dict schemas to have both patternProperties and additionalProperties, #4641 by @jparise * Fixes error passing None for optional lists with unique_items, #4568 by @mfulgo * Fix GenericModel with Callable param raising a TypeError, #4551 by @mfulgo * Fix field regex with StrictStr type annotation, #4538 by @sisp * Correct dataclass_transform keyword argument name from field_descriptors to field_specifiers, #4500 by @samuelcolvin * fix: avoid multiple calls of __post_init__ when dataclasses are inherited, #4487 by @PrettyWood * Reduce the size of binary wheels, #2276 by @samuelcolvin
Dirk Mueller2023-01-02 20:23:23 +00:00
aabb102902
- update to v1.10.4: * Change dependency to typing-extensions>=4.2.0, #4885 by @samuelcolvin * fix parsing of custom root models, #4883 by @gou177 * fix: use dataclass proxy for frozen or empty dataclasses, #4878 by @PrettyWood * Fix schema and schema_json on models where a model instance is a one of default values, #4781 by @Bobronium * Add Jina AI to sponsors on docs index page, #4767 by @samuelcolvin * fix: support assignment on DataclassProxy, #4695 by @PrettyWood * Add postgresql+psycopg as allowed scheme for PostgreDsn to make it usable with SQLAlchemy 2, #4689 by @morian * Allow dict schemas to have both patternProperties and additionalProperties, #4641 by @jparise * Fixes error passing None for optional lists with unique_items, #4568 by @mfulgo * Fix GenericModel with Callable param raising a TypeError, #4551 by @mfulgo * Fix field regex with StrictStr type annotation, #4538 by @sisp * Correct dataclass_transform keyword argument name from field_descriptors to field_specifiers, #4500 by @samuelcolvin * fix: avoid multiple calls of __post_init__ when dataclasses are inherited, #4487 by @PrettyWood * Reduce the size of binary wheels, #2276 by @samuelcolvin
Dirk Mueller2023-01-02 20:23:23 +00:00
4b1c6e6331
- 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
Steve Kowalik2022-09-09 00:58:49 +00:00
b1114cc366
- 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
Steve Kowalik2022-09-09 00:58:49 +00:00
4da4f1c674
- update to 1.5.1 * Signature generation with extra: allow never uses a field name, #1418 by @prettywood * Avoid mutating Field default value, #1412 by @prettywood
Dirk Mueller2020-06-09 19:24:43 +00:00
56956a35ea
- update to 1.5.1 * Signature generation with extra: allow never uses a field name, #1418 by @prettywood * Avoid mutating Field default value, #1412 by @prettywood
Dirk Mueller2020-06-09 19:24:43 +00:00