diff --git a/python/copilot/types.py b/python/copilot/types.py index b0e52cd3a..cc4913225 100644 --- a/python/copilot/types.py +++ b/python/copilot/types.py @@ -192,8 +192,10 @@ class PermissionRequestResult(TypedDict, total=False): class PermissionHandler: @staticmethod - def approve_all(request: Any, invocation: Any) -> dict: - return {"kind": "approved"} + def approve_all( + request: PermissionRequest, invocation: dict[str, str] + ) -> PermissionRequestResult: + return PermissionRequestResult(kind="approved") # ============================================================================