You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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").
The text was updated successfully, but these errors were encountered:
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 defaultFalse
, the examples in the linked documentation would printNone
. It'll be nice for the docstrings to still be accessible viaModel.model_fields["x"].description
, just like if it's defined usingField(description="Description in Field")
.The text was updated successfully, but these errors were encountered: