Skip to content

Commit 58b95bb

Browse files
committed
Update converters to use type_ instead of type
See graphql-python/graphene#1216
1 parent a3a0890 commit 58b95bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_pydantic/converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def convert_pydantic_input_field(
9797
"""
9898
declared_type = getattr(field, "type_", None)
9999
field_kwargs.setdefault(
100-
"type",
100+
"type_",
101101
convert_pydantic_type(
102102
declared_type, field, registry, parent_type=parent_type, model=model
103103
),
@@ -126,7 +126,7 @@ def convert_pydantic_field(
126126
"""
127127
declared_type = getattr(field, "type_", None)
128128
field_kwargs.setdefault(
129-
"type",
129+
"type_",
130130
convert_pydantic_type(
131131
declared_type, field, registry, parent_type=parent_type, model=model
132132
),

0 commit comments

Comments
 (0)