aws / aws/bedrock-agentcore-sdk-python
bug: missing IDE autocomplete for passthrough methods.
- Lingua principale
- Python
- Stelle
- 761
- Fork
- 147
- Merge medio
- 1g 23h
- PR unite (30g)
- 7
Descrizione
**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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con i metodi passthrough di MemoryClient ed esamina come Python __getattr__ inoltra le chiamate al client boto. Valuta se i file .pyi generati possono rappresentare questi metodi ed essere distribuiti con l’SDK, quindi verifica che il completamento automatico dell’IDE funzioni per MemoryClient dopo l’installazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- developer-experience
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100