--- a/src/eric7/QScintilla/Editor.py Tue Nov 21 11:42:45 2023 +0100 +++ b/src/eric7/QScintilla/Editor.py Wed Nov 22 17:19:10 2023 +0100 @@ -9380,6 +9380,8 @@ was started (line and index) @type tuple of (int, int) """ + from .DocstringGenerator.BaseDocstringGenerator import DocstringMenuForEnterOnly + cursorPosition = self.getCursorPosition() if lastCursorPosition != cursorPosition: return @@ -9389,10 +9391,6 @@ generator = self.getDocstringGenerator() if generator.hasFunctionDefinition(cursorPosition): - from .DocstringGenerator.BaseDocstringGenerator import ( # __IGNORE_WARNING__ - DocstringMenuForEnterOnly, - ) - docstringMenu = DocstringMenuForEnterOnly(self) act = docstringMenu.addAction( EricPixmapCache.getIcon("fileText"),