From 371096033bceb9103ee52c209e13e58e73c0cc64 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:28:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- strawberry/codegen/query_codegen.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/strawberry/codegen/query_codegen.py b/strawberry/codegen/query_codegen.py index 77be3ed692..71d615045c 100644 --- a/strawberry/codegen/query_codegen.py +++ b/strawberry/codegen/query_codegen.py @@ -652,12 +652,16 @@ def _unwrap_type( if isinstance(type_, StrawberryOptional): type_, wrapper = self._unwrap_type(type_.of_type) wrapper = ( - GraphQLOptional if wrapper is None else lambda t: GraphQLOptional(wrapper(t)) # type: ignore[misc] + GraphQLOptional + if wrapper is None + else lambda t: GraphQLOptional(wrapper(t)) # type: ignore[misc] ) elif isinstance(type_, StrawberryList): type_, wrapper = self._unwrap_type(type_.of_type) - wrapper = GraphQLList if wrapper is None else lambda t: GraphQLList(wrapper(t)) # type: ignore[misc] + wrapper = ( + GraphQLList if wrapper is None else lambda t: GraphQLList(wrapper(t)) + ) # type: ignore[misc] elif isinstance(type_, LazyType): return self._unwrap_type(type_.resolve_type())