Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanvalur committed Jun 8, 2023
1 parent 2ee6279 commit 33caef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/views/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ConditionalFailPermission(BasePermission):
def message(self):
return f"failed after sleep {self.sleep}"

async def has_permission(self, source, info, **kwargs) -> bool:
async def has_permission(self, source, info, **kwargs: Any) -> bool:
self.sleep = kwargs.get("sleep", None)
self.fail = kwargs.get("fail", True)
if self.sleep is not None:
Expand Down

0 comments on commit 33caef4

Please sign in to comment.