Skip to content

Commit 7c264e9

Browse files
authored
Merge pull request #1204 from Object905/fix_py3124
Fix ForwardRef._evaluate() missing 1 required keyword-only argument on python 3.12.4
2 parents c6d44b6 + f78acf3 commit 7c264e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ninja/signature/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def evaluate_forwardref(type_: ForwardRef, globalns: Any, localns: Any) -> Any:
1717
def evaluate_forwardref(type_: ForwardRef, globalns: Any, localns: Any) -> Any:
1818
# Even though it is the right signature for python 3.9, mypy complains with
1919
# `error: Too many arguments for "_evaluate" of "ForwardRef"` hence the cast...
20-
return cast(Any, type_)._evaluate(globalns, localns, set())
20+
return cast(Any, type_)._evaluate(globalns, localns, recursive_guard=set())
2121

2222

2323
from ninja.types import DictStrAny

0 commit comments

Comments
 (0)