Commit 54288b6
committed
Fix pyright configuration and type errors in loop.py
- Add working-directory parameter to pyright-action to scope checks to computer-use-demo
- Fix type errors in loop.py by using proper isinstance checks and type casting
- Use .get() for safe dictionary access and cast to BetaToolUseBlockParam
- Replace .pop() with conditional del for cache_control removal1 parent 97ba4d7 commit 54288b6
File tree
2 files changed
+7
-3
lines changed- .github/workflows
- computer-use-demo/computer_use_demo
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | | - | |
| 177 | + | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | | - | |
| 282 | + | |
| 283 | + | |
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| |||
0 commit comments