--- a/eric7/JediInterface/JediServer.py Tue Jan 11 19:56:15 2022 +0100 +++ b/eric7/JediInterface/JediServer.py Thu Jan 13 19:40:00 2022 +0100 @@ -211,9 +211,9 @@ for completion in result["Completions"]: name = completion['Name'] context = completion['FullName'] - if context.endswith(".{0}".format(name)): - context = context.rsplit(".", 1)[0] if context: + if context.endswith(".{0}".format(name)): + context = context.rsplit(".", 1)[0] name = "{0} ({1})".format(name, context) name += JediServer.PictureIDs.get(completion['CompletionType'], '')