First time here? Check out the FAQ!
1

Boto3 autocomplete issue
 

When I use aws sdk, boto3, I can't get autocomplete function. For example,

import boto3

c = boto3.client("dynamodb")

c.|

| is the cursor position. In python shell, it will popup a menu with all functions about client, but in the editor, it will not show anything.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
bai's avatar
83
bai
asked 1 year ago
Wingware Support's avatar
4.2k
Wingware Support
updated 1 year ago

Comments

see more comments

1 Answer

0

This can happen if a module is written in such a way that static analysis cannot determine the type of a function's return value (in this case boto3.client). It works in the Python Shell and will also work in the editor if you run to a break point there because then Wing can also use runtime analysis to determine types.

You can also add a type annotation for 'c' as a way to make it work also when static analysis is all that is available. For details see https://wingware.com/doc/edit/analysis-…

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.2k
Wingware Support
answered 1 year ago
link

Comments

see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)