The use_attribute_docstrings
key is available in Pydantic v2.7+ that enables docstrings of attributes to be used for field descriptions. If the value is the default False
, the examples in the linked documentation would print None
. It'll be nice for the docstrings to still be accessible via Model.model_fields["x"].description
, just like if it's defined using Field(description="Description in Field")
.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too