bug: missing IDE autocomplete for passthrough methods.

Open
#354 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with the MemoryClient passthrough methods and inspect how Python getattr proxies calls to the boto client. Evaluate whether generated .pyi files can represent those methods and be shipped with the SDK, then verify that IDE autocomplete works for MemoryClient after installation.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
764
Forks
149
Avg merge
1d 19h
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/bedrock-agentcore-sdk-python

All issues in aws/bedrock-agentcore-sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.