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 Feb 2, 2025
1 parent 0504a9d commit 0e848e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion strawberry/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ def create_optional(self, evaled_type: Any) -> StrawberryOptional:
types = get_args(evaled_type)
non_optional_types = tuple(
filter(
lambda x: x is not type(None) and x is not type(UNSET) and x != type[UNSET],
lambda x: x is not type(None)
and x is not type(UNSET)
and x != type[UNSET],
types,
)
)
Expand Down

0 comments on commit 0e848e1

Please sign in to comment.