Skip to content

Commit 7d7f24b

Browse files
committed
Help MyPy with wrapper type
1 parent a367151 commit 7d7f24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strawberry/codegen/query_codegen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def _unwrap_type(
645645
) -> Tuple[
646646
Union[type, StrawberryType], Optional[Callable[[GraphQLType], GraphQLType]]
647647
]:
648-
wrapper = None
648+
wrapper: Optional[Callable[[GraphQLType], GraphQLType]] = None
649649

650650
if isinstance(type_, StrawberryOptional):
651651
type_, previous_wrapper = self._unwrap_type(type_.of_type)

0 commit comments

Comments
 (0)