Skip to content

Commit

Permalink
Help MyPy with wrapper type
Browse files Browse the repository at this point in the history
  • Loading branch information
enoua5 committed Oct 2, 2024
1 parent a367151 commit 7d7f24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strawberry/codegen/query_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def _unwrap_type(
) -> Tuple[
Union[type, StrawberryType], Optional[Callable[[GraphQLType], GraphQLType]]
]:
wrapper = None
wrapper: Optional[Callable[[GraphQLType], GraphQLType]] = None

if isinstance(type_, StrawberryOptional):
type_, previous_wrapper = self._unwrap_type(type_.of_type)
Expand Down

0 comments on commit 7d7f24b

Please sign in to comment.