For example, if you write "import random", then the completion widget shoud be hidden because there's no point in showing it. Note that the widget should only be hidden if the only suggestion matches the text being typed. This probably needs to be done depending on the item type, since you don't want to do it for e.g. function items (since executing them adds the brackets etc). Reproducible: Always