Skip to content

Commit

Permalink
Fix "Failing to pass a value to the type_params parameter of typing._…
Browse files Browse the repository at this point in the history
…eval_type"
  • Loading branch information
patrick91 committed Nov 8, 2024
1 parent 04936fd commit a5c38d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion strawberry/utils/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,12 @@ def eval_type(
assert ast_unparse
type_ = ForwardRef(ast_unparse(ast_obj))

return _eval_type(type_, globalns, localns)
extra = {}

if sys.version_info >= (3, 13):
extra = {"type_params": None}

return _eval_type(type_, globalns, localns, **extra)

origin = get_origin(type_)
if origin is not None:
Expand Down

0 comments on commit a5c38d9

Please sign in to comment.