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.

bai's avatar
73
bai
asked 2023-08-29 03:03:36 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2023-12-07 08:21:55 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment 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-…

Wingware Support's avatar
4.1k
Wingware Support
answered 2023-08-29 06:22:05 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment 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