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 Oct 21, 2024
1 parent 9b4e9c9 commit e89afd1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion strawberry/permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ def __init__(
def apply(self, field: StrawberryField) -> None:
"""Applies all of the permission directives (deduped) to the schema and sets up silent permissions."""
if self.use_directives:
permission_directives = [perm.schema_directive for perm in self.permissions if perm.schema_directive]
permission_directives = [
perm.schema_directive
for perm in self.permissions
if perm.schema_directive
]
# Iteration, because we want to keep order
for perm_directive in permission_directives:
# Dedupe multiple directives
Expand Down

0 comments on commit e89afd1

Please sign in to comment.