Commit b9f746a
fix(python): correct PermissionHandler.approve_all type annotations (github#618)
The approve_all static method used untyped parameters (Any) and returned
a plain dict, conflicting with the _PermissionHandlerFn signature that
expects (PermissionRequest, dict[str, str]) -> PermissionRequestResult.
- Replace parameter types: Any → PermissionRequest, dict[str, str]
- Replace return type: dict → PermissionRequestResult
- Use PermissionRequestResult() constructor instead of dict literal
Fixes github#612
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent bb02de1 commit b9f746a
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
0 commit comments