diff --git a/ninja/signature/utils.py b/ninja/signature/utils.py index a5c1b705..c2b0acf3 100644 --- a/ninja/signature/utils.py +++ b/ninja/signature/utils.py @@ -17,7 +17,7 @@ def evaluate_forwardref(type_: ForwardRef, globalns: Any, localns: Any) -> Any: def evaluate_forwardref(type_: ForwardRef, globalns: Any, localns: Any) -> Any: # Even though it is the right signature for python 3.9, mypy complains with # `error: Too many arguments for "_evaluate" of "ForwardRef"` hence the cast... - return cast(Any, type_)._evaluate(globalns, localns, set()) + return cast(Any, type_)._evaluate(globalns, localns, recursive_guard=set()) from ninja.types import DictStrAny