Ask Your Question

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

asked 2020-04-15 03:57:32 -0600

hongyi-zhao's avatar

updated 2020-04-15 10:06:43 -0600


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.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-15 10:06:51 -0600

I've added this as a feature request.

edit flag offensive delete link more


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 -0600 )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 -0600 )edit

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


hongyi-zhao's avatar hongyi-zhao  ( 2020-04-15 10:42:45 -0600 )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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-04-15 03:57:32 -0600

Seen: 622 times

Last updated: Apr 15 '20