Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
Field
in dataclass
+ 'metadata'
kwarg of `dataclasses.f…
…ield` (#2384) * Support `Field` in `dataclass` + `'metadata'` kwarg of `dataclasses.field` Please enter the commit message for your changes. Lines starting * add `__has_field_info_default__` for minimal effect on perf * lower complexity of `_process_class`
- Loading branch information
1 parent
f32832a
commit 3ec3559
Showing
4 changed files
with
70 additions
and
23 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Improve field declaration for _pydantic_ `dataclass` by allowing the usage of _pydantic_ `Field` or `'metadata'` kwarg of `dataclasses.field` |
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