aws / aws/bedrock-agentcore-sdk-python
bug: missing IDE autocomplete for passthrough methods.
- 主要言語
- Python
- スター
- 764
- フォーク
- 148
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 7
説明
**Describe the bug**
IDE autocompletion does not work for passthrough methods.
**To Reproduce**
Install the SDK and attempt to get autocompletes in any IDE for `MemoryClient`.
**Expected behavior**
proper auto completes.
**Additional Context**
This is because the passthrough methods leverage python `__getattr__` to directly proxy to the boto client. The static analysis done by IDEs is not able to pick this up, resulting in missing autocompletes.
One potential solution could be to generate `.pyi` and ship them as part of the SDK.
コントリビューションガイド
調査の方向性
MemoryClient のパススルーメソッドから始め、Python __getattr__ が boto クライアントへの呼び出しをどのようにプロキシするかを調べます。生成された .pyi ファイルでそれらのメソッドを表現して SDK とともに配布できるかを評価し、インストール後に MemoryClient で IDE の自動補完が機能することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- developer-experience
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100