File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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(
107107 # - hunt down the description from the field's schema, or the schema
108108 # from the field's base model
109109 # - maybe even (Sphinx-style) parse attribute documentation
110- field_kwargs .setdefault ("description" , field .__doc__ )
110+ field_kwargs .setdefault ("description" , field .field_info . description )
111111
112112 return InputField (** field_kwargs )
113113
@@ -136,7 +136,7 @@ def convert_pydantic_field(
136136 # - hunt down the description from the field's schema, or the schema
137137 # from the field's base model
138138 # - maybe even (Sphinx-style) parse attribute documentation
139- field_kwargs .setdefault ("description" , field .__doc__ )
139+ field_kwargs .setdefault ("description" , field .field_info . description )
140140
141141 return Field (resolver = get_attr_resolver (field .name ), ** field_kwargs )
142142
You can’t perform that action at this time.
0 commit comments