From f78acf342c3439bd8790f3ebcb4f1c5ccab32cb5 Mon Sep 17 00:00:00 2001 From: Object905 Date: Tue, 25 Jun 2024 12:31:00 +0500 Subject: [PATCH] fix: #1203 --- ninja/signature/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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