src/eric7/QScintilla/Editor.py

branch
eric7
changeset 10331
c1a2ff7e3575
parent 10307
c685f4e12916
child 10341
3fdffd9cc21d
--- 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"),

eric ide

mercurial