Skip to content

Commit 9eb6399

Browse files
authored
Merge pull request #66 from process0/process0-dont-return-None-for-BaseModel-type
Return registry placeholder for `BaseModel` when resolving type
2 parents 2244717 + b6993b8 commit 9eb6399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graphene_pydantic/converters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +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 registry.get_type_for_model(type_)
211212
# NOTE: this has to come before any `issubclass()` checks, because annotated
212213
# generic types aren't valid arguments to `issubclass`
213214
elif hasattr(type_, "__origin__"):

0 commit comments

Comments
 (0)