Skip to content

Commit

Permalink
Merge branch 'fix-list-annotation' of github.com:jeich/strawberry int…
Browse files Browse the repository at this point in the history
…o fix-list-annotation
  • Loading branch information
jeich committed Feb 19, 2024
2 parents a60bf86 + cc4fbef commit b310b16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Release type: patch

Fixes an issue where lazy annotations raised an error when used together with a List
Fixes an issue where lazy annotations raised an error when used together with a List
2 changes: 1 addition & 1 deletion strawberry/utils/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _get_namespace_from_ast(
elif (
isinstance(expr, ast.Subscript)
and isinstance(expr.value, ast.Name)
and expr.value.id in {"list", "List", "Annotated"}
and expr.value.id == "Annotated"
):
assert ast_unparse

Expand Down

0 comments on commit b310b16

Please sign in to comment.