First time here? Check out the FAQ!
0

Let wing automatically disable the auto-completion suggestions for the already imported names on the same line.

Hi,

Say for the following code line:

from aiida.orm import Code

If I continue to do the importing on the same line as following:

from aiida.orm import Code, C<tab>

Then the wing will still show the Code as one of the candidates for completion. But it's obviously that there is no need to let wing give the auto-completion suggestions for the already imported ones on that line.

Regards

hongyi-zhao's avatar
527
hongyi-zhao
asked 2020-04-15 03:57:32 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2020-04-15 10:06:43 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I've added this as a feature request.

Wingware Support's avatar
4.1k
Wingware Support
answered 2020-04-15 10:06:51 -0500
edit flag offensive 0 remove flag delete link

Comments

Generally speaking, this should be implemented in the whole range of the script we are working on.

hongyi-zhao's avatar hongyi-zhao (2020-04-15 10:19:37 -0500) edit

I'm not seeing a general case here. In most cases if you defined something already you may want to overwrite it, or call it, or access an attribute on it.

Wingware Support's avatar Wingware Support (2020-04-15 10:23:40 -0500) edit

I mean importing on the exactly same stuff is no need to do more then once for one script, am I wrong?

Regards

hongyi-zhao's avatar hongyi-zhao (2020-04-15 10:42:45 -0500) edit

Right, it's almost certainly not useful in imports although note that something like "from pkg import Test, Test as test" _is_ valid Python. I just don't think it's likely anyone will want to type that.

Wingware Support's avatar Wingware Support (2020-04-15 10:57:30 -0500) edit
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