Commit fb7bb14
fix(OPEN-11891): satisfy pyright in both lint environments
CI's lint env has neither google-genai nor google-adk installed, so
`from google import genai` resolves to an unknown attribute on the
`google` namespace package (reportMissingTypeStubs +
reportAttributeAccessIssue). Locally, where the package IS installed,
pyright instead flags `inference_id` as an undeclared kwarg on
generate_content -- which is the point, since the tracer pops it before
calling through.
Suppress those three at file level in both new test files, and fix a
genuine typing slip: the async streaming comprehension yielded
list[str | None] against a List[str] annotation.
Verified against a venv with no google-* packages (matching CI) as well
as the local env with both installed: 0 errors either way, and no
pyright errors attributable to the new files repo-wide.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A8GauFiK5edFUfGnbjJrtz1 parent e1e518e commit fb7bb14
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
291 | 295 | | |
292 | 296 | | |
293 | 297 | | |
294 | | - | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
| |||
0 commit comments