import strawberry
from strawberry.permission import BasePermission, PermissionExtension
from typing import Any
class IsAuthenticated(BasePermission):
def has_permission(self, *arg: Any, **kwargs: Any) -> bool:
return True
@strawberry.type
class ABC:
@strawberry.mutation(name="hello")
def hello(self) -> str:
return "world"
β uv run mypy --strict app.py
app.py:14: error: Untyped decorator makes function "hello" untyped [misc]
Found 1 error in 1 file (checked 1 source file)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too