We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 872a404 commit 6c90347Copy full SHA for 6c90347
graphene_pydantic/converters.py
@@ -131,6 +131,10 @@ def convert_pydantic_field(
131
# - maybe even (Sphinx-style) parse attribute documentation
132
field_kwargs.setdefault("description", field.field_info.description)
133
134
+ # Somehow, this happens
135
+ if "type_" not in field_kwargs and "type" in field_kwargs:
136
+ field_kwargs["type_"] = field_kwargs.pop("type")
137
+
138
return Field(resolver=get_attr_resolver(field.name), **field_kwargs)
139
140
0 commit comments