Skip to content

Commit b6993b8

Browse files
committed
replace recurse call with get from registry
1 parent dbd362c commit b6993b8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

graphene_pydantic/converters.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ def find_graphene_type(
208208
# we can put a placeholder in and request that `resolve_placeholders()`
209209
# be called to update it.
210210
registry.add_placeholder_for_model(type_)
211-
return find_graphene_type(
212-
type_, field, registry, parent_type=parent_type, model=model
213-
)
211+
return registry.get_type_for_model(type_)
214212
# NOTE: this has to come before any `issubclass()` checks, because annotated
215213
# generic types aren't valid arguments to `issubclass`
216214
elif hasattr(type_, "__origin__"):

0 commit comments

Comments
 (0)