-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6914c04
commit 30b58f3
Showing
4 changed files
with
90 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
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. | ||
<br/><br/> | ||
**BREAKING CHANGE** The `compiled` boolean (whether _pydantic_ is compiled with cython) has been moved from `main.py` to `version.py` | ||
**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`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters