Developer Knowledge fallback search response is not iterable
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
調査の方向性
developer-knowledge/conftest.py から始めてフォールバックの SearchDocumentChunksResponse を調べ、次に developer-knowledge/search_document_chunks.py の反復処理とその動作を比較します。python -m pytest developer-knowledge -q を実行します。完了とは、4つすべての対象テストがパスし、サンプルのページャーループでフォールバックレスポンスを使用できることを意味します。
索引モデルが issue の本文から書いたものです。
説明
In which file did you encounter the issue?
developer-knowledge/conftest.py and developer-knowledge/search_document_chunks.py
Did you change the file? If so, how?
No.
Describe the issue
The Developer Knowledge samples include a fallback implementation for environments where the preview client is not installed. The fallback SearchDocumentChunksResponse stores its results but is not iterable, while the sample iterates over the response as a pager.
Reproduction command:
python -m pytest developer-knowledge -q
Result:
3 passed, 1 failed
...
developer-knowledge\\search_document_chunks.py:44: in search_document_chunks
for chunk in response:
TypeError: 'SearchDocumentChunksResponse' object is not iterable
Expected behavior: all four focused tests pass using the intended fallback. Actual behavior: the search test fails before it can exercise the sample.
Environment: Python 3.12, pytest 9.1.1, repository main at commit 430a87ada6f2d33f318b5d16b77464679905a140.
- 主要言語
- Jupyter Notebook
- スター
- 8.1k
- フォーク
- 6.7k
- 平均マージ
- 4日 4時間
- マージ済み PR(30日)
- 8
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleCloudPlatform/python-docs-samples のほかの issue
-
samples
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
samples
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
samples
GoogleCloudPlatform/python-docs-samples#14117 · 担当者 1 名 ·
-
samples
GoogleCloudPlatform/python-docs-samples#14091 · 担当者 1 名 ·
-
samples
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
GoogleCloudPlatform/python-docs-samples#13734 · コメント 4 件 ·
GoogleCloudPlatform/python-docs-samples の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
area/profiles comp/cli comp/dashboard P2 sweeper:risk-session-state type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NousResearch/hermes-agent#122365 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vllm-project/production-stack#1105 ·
-
bug priority:low
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
CyberAgent/psd2svg#430 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100