File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 24
24
from graphene .types .datetime import Date , DateTime , Time
25
25
from pydantic import BaseModel
26
26
from pydantic .fields import ModelField
27
+ from pydantic .typing import evaluate_forwardref
27
28
28
29
from .registry import Registry
29
30
from .util import construct_union_class_name
@@ -227,7 +228,7 @@ def find_graphene_type(
227
228
"See the README for more on forward references."
228
229
)
229
230
module_ns = sys .modules [sibling .__module__ ].__dict__
230
- resolved = type_ . _evaluate ( module_ns , None )
231
+ resolved = evaluate_forwardref ( type_ , module_ns , None )
231
232
# TODO: make this behavior optional. maybe this is a place for the TypeOptions to play a role?
232
233
if registry :
233
234
registry .add_placeholder_for_model (resolved )
You can’t perform that action at this time.
0 commit comments