File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ def convert_pydantic_input_field(
107
107
# - hunt down the description from the field's schema, or the schema
108
108
# from the field's base model
109
109
# - maybe even (Sphinx-style) parse attribute documentation
110
- field_kwargs .setdefault ("description" , field .__doc__ )
110
+ field_kwargs .setdefault ("description" , field .field_info . description )
111
111
112
112
return InputField (** field_kwargs )
113
113
@@ -136,7 +136,7 @@ def convert_pydantic_field(
136
136
# - hunt down the description from the field's schema, or the schema
137
137
# from the field's base model
138
138
# - maybe even (Sphinx-style) parse attribute documentation
139
- field_kwargs .setdefault ("description" , field .__doc__ )
139
+ field_kwargs .setdefault ("description" , field .field_info . description )
140
140
141
141
return Field (resolver = get_attr_resolver (field .name ), ** field_kwargs )
142
142
You can’t perform that action at this time.
0 commit comments