Skip to content

v2.0b3 2023-06-16

Compare
Choose a tag to compare
@dmontagu dmontagu released this 16 Jun 23:47
· 822 commits to main since this release
3e8b3b0

What's Changed

  • Fix SchemaError when multiple computed fields point to the same type by @adriangb in #5987
  • Fix bug in BaseModel signature generation when a field uses Annotated by @adriangb in #5990
  • Fix json schema for single empty tuple by @adriangb in #5988
  • Fix test_extra_used_as_enum to use pytest.warns() by @mgorny in #5994
  • Improve test coverage of pydantic._internal._typing_extra by @hramezani in #5978
  • πŸ—‘οΈ Deprecate Color and PaymentCardNumber by @Kludex in #6003
  • Allow __pydantic_config__ to be used on vanilla dataclasses by @adriangb in #6008
  • Give nicer error when using a bare root_validator by @dmontagu in #6009
  • Fix bug with model_construct when extra=allow by @dmontagu in #6012
  • πŸ‘· Add mkdocs-material-insiders to pipeline by @Kludex in #6014
  • Add more types to conversion table by @hramezani in #6005
  • πŸ“ Add documentation for model_config by @Kludex in #6021
  • πŸ“¦ Import RootModel dynamically when accessed directly only by @lig in #5951
  • πŸ› Fix aliases priority by @Kludex in #6023
  • Improve usage models doc by @hramezani in #6019
  • πŸ“ Add documentation for PhoneNumber and ABARoutingNumber by @Kludex in #6031
  • Improve docs/usage/exporting_models doc by @hramezani in #6030
  • πŸ“ Include API documentation for pydantic-settings by @Kludex in #6035
  • Fix api links in docs by @hramezani in #6036
  • πŸ’š Remove installation of mkdocs-material-insiders on forks by @Kludex in #6037
  • Add tests for mypy inspection of metaclass arguments by @cpratt34 in #5982
  • Sort produced json schemas by @adriangb in #6043
  • Add 1.10 releases to HISTORY.md by @hramezani in #6044
  • Improve docs/usage/dataclasses.md by @hramezani in #6046
  • πŸ“ Reference ConfigDict API documentation from model_config.md by @Kludex in #6047
  • πŸ“ Update postponed_annotations.md documentation by @Kludex in #6048
  • πŸ“ Add API documentation for pydantic-extra-types by @Kludex in #6050
  • πŸ“ Add docstrings for top level modules by @Kludex in #6053
  • πŸ“ Update documentation for the color module by @Kludex in #6057
  • Update datetime.md by @Phantom1472 in #6061
  • Add API docs file for root_model.py (issue DOC-3) by @dmontagu in #6060
  • Improve docs/usage/types/string_types.md by @hramezani in #6058
  • Minor docs improvements by @dmontagu in #6064
  • Update dataclasses.py docstrings by @dmontagu in #6065
  • Docstring formatting fixes for dataclasses and functional_validators by @tpdorsey in #6063
  • Add pydocstyle ruff rules by @Kludex in #6067
  • Specify members to appear in documentation for pydantic_core by @tpdorsey in #6062
  • πŸ“ Update docstings on networks.py by @Kludex in #6069
  • πŸ“ Add docstrings on version.py by @Kludex in #6070
  • πŸ“ Update install.md documentation by @Kludex in #6071
  • Create fields.md on the documentation by @Kludex in #6072
  • Fix broken and incorrectly formatting internal links by @tpdorsey in #6075
  • Document docstring requirements with examples by @tpdorsey in #6081
  • βœ… Update installation of FastAPI for tests by @tiangolo in #6084
  • Improve config docstring by @hramezani in #6066
  • Allow applying serializers and constraints to named/ref schemas by @adriangb in #6007
  • Improve pydantic/_internal/_annotated_handlers.py docstring by @hramezani in #6086
  • πŸ”₯ Remove Google Analytics by @Kludex in #6087
  • πŸ“ Add docstrings for functional_serializers.py by @Kludex in #6092
  • Update datetime usage docs by @dmontagu in #6077
  • Update Pydantic V1 to 1.10.9 by @hramezani in #6093
  • Replace pydantic with Pydantic in docs by @tpdorsey in #6097
  • Improve docs/usage/errors.md docs by @hramezani in #6098
  • πŸ“ Add docstrings to types.py by @Kludex in #6091
  • πŸ“ Improve fields.py docstring by @Kludex in #6088
  • ♻️ Remove SecretField from public API by @Kludex in #6094
  • Update generic custom type example in docs/usage/types/custom.md by @adriangb in #5935
  • Update pydantic-core by @adriangb in #5958
  • Fix __get_pydantic_core_schema__ for Enum by @adriangb in #6100
  • Improve pydantic/_internal/_dataclasses.py docstring by @hramezani in #6105
  • Replace deprecated-kwargs with removed-kwargs by @hramezani in #6107
  • πŸ“ Improve "Config Model" documentation by @Kludex in #6108
  • πŸ“ Add docstrings to type_adapter.py by @Kludex in #6109
  • πŸ“ Move "Arbitrary Types Allowed" section to "Model Config" page by @Kludex in #6110
  • Simplify our usage of handler.generate_schema() to simplify explaining it in the docs by @adriangb in #6102
  • Improve pydantic/_internal/_core_metadata.py docstring by @hramezani in #6089
  • Improve pydantic/_internal/_decorators.py docstring by @hramezani in #6114
  • Fix typo in errors doc by @hramezani in #6118
  • add road-map to annoucement bar by @samuelcolvin in #6119
  • Document the behavior of non-hashable default values by @dmontagu in #6122
  • Fix extra fields behavior for TypedDict and make additionalProperties explicit in JSON schema by @adriangb in #6115
  • Skip test test_del_model_attr_error to run on PyPy < 3.9 by @hramezani in #6131
  • Update docs related to postponed annotations by @dmontagu in #6123
  • Improve documentation related to model_construct by @dmontagu in #6121
  • Revert "Skip test test_del_model_attr_error to run on PyPy < 3.9 (#6131)" by @hramezani in #6133
  • πŸ“ Add documentation about model_config inheritance by @Kludex in #6132
  • Make it work when using a type annotation on the model_config by @dmontagu in #6136
  • πŸ“ Add documentation about AliasPath and AliasChoices by @Kludex in #6129
  • Improve pydantic/_internal/_decorators_v1.py docstring by @hramezani in #6128
  • Remove default factory call results from the JSON schema by @dmontagu in #6126
  • Improve pydantic/_internal/_discriminated_union.py docstring by @hramezani in #6134
  • Landing page fix links and minor edits by @tpdorsey in #6074
  • Improve the regex used for NameEmail validation by @dmontagu in #6125
  • Docs updates for type adapter by @tpdorsey in #6052
  • Update documentation about exporting models by @dmontagu in #6078
  • πŸ“ Update union.md documentation by @Kludex in #6055
  • Update booleans.md and bytesize.md by @dmontagu in #6076
  • πŸ› Remove dataclass field with init_var from __pydantic__fields__ by @Kludex in #6141
  • Improve pydantic/_internal/_fields.py docstring by @hramezani in #6138
  • Fix typo in pydantic._internal._fields by @Viicos in #6148
  • Skip test_del_model_attr_error on PyPy by @hramezani in #6153
  • πŸ’‘ Update links to RootModel docs section everywhere by @lig in #6154
  • Remove not needed code from pydantic/_internal/_forward_ref.py by @hramezani in #6146
  • Improve pydantic/_internal/_known_annotated_metadata.py docstring by @hramezani in #6155
  • Improve pydantic/_internal/_generics.py docstring by @hramezani in #6151
  • πŸ› Fix RootModel json schema meta info by @lig in #6104
  • Fix definitions unpacking and registering when building a schema that uses a model by @adriangb in #6144
  • Add additional links and notes regarding extra types by @tpdorsey in #6160
  • PYD-92: Add custom type docs for Annotated and TypeAliasType by @adriangb in #6161
  • DOC-104: add note about preserving input types to migration guide by @adriangb in #6135
  • Add SerializeAsAny for opt-in duck typed serialization by @adriangb in #6162
  • Improve pydantic/_internal/_generate_schema.py docstring by @hramezani in #6149
  • Improve pydantic/_internal/_internal_dataclass.py docstring by @hramezani in #6152
  • correct PrivateAttr docs by @samuelcolvin in #6164
  • Allow setting type for values in __pydantic_extra__ by @adriangb in #6139
  • Improve pydantic/_internal/_model_construction.py docstring by @hramezani in #6166
  • Improve pydantic/_internal/_schema_generation_shared.py docstring by @hramezani in #6168
  • Improve pydantic/functional_validators.py docstring by @hramezani in #6169
  • βœ… Try reproducing rebuilding recursive schema with a ForwardRef by @lig in #6159
  • Make unannotated private attrs into private attrs by @dmontagu in #6111
  • Add Examples annotation and re-organize existing annotations by @adriangb in #6174
  • Improve pydantic/main.py docstrings by @hramezani in #6173
  • V2 migration guide updates by @dmontagu in #6006
  • πŸ“ Improve documentation on fields.md by @Kludex in #6137
  • Prepare for v2.0b3 by @dmontagu in #6176

New Contributors

Full Changelog: v2.0b2...v2.0b3