Skip to content

Commit

Permalink
Merge pull request #1204 from Object905/fix_py3124
Browse files Browse the repository at this point in the history
Fix ForwardRef._evaluate() missing 1 required keyword-only argument on python 3.12.4
  • Loading branch information
vitalik authored Jun 26, 2024
2 parents c6d44b6 + f78acf3 commit 7c264e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja/signature/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c264e9

Please sign in to comment.