Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 13, 2023
1 parent 09b06ce commit 3710960
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions strawberry/codegen/query_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 3710960

Please sign in to comment.