RefactoringRope/CodeAssistServer.py

branch
eric7
changeset 413
a4cba20ad7ab
parent 412
6fa5892b9097
child 414
af1d72eccf91
diff -r 6fa5892b9097 -r a4cba20ad7ab RefactoringRope/CodeAssistServer.py
--- a/RefactoringRope/CodeAssistServer.py	Sat Dec 23 15:48:55 2023 +0100
+++ b/RefactoringRope/CodeAssistServer.py	Sat Dec 23 17:58:35 2023 +0100
@@ -220,11 +220,11 @@
         @param idString id for which to get the configuration file
         @type str
         """
+        from eric7.QScintilla.MiniEditor import MiniEditor
+
         configfile = self.__ropeConfigFile(idString)
         if configfile:
             if os.path.exists(configfile):
-                from eric7.QScintilla.MiniEditor import MiniEditor
-
                 editor = MiniEditor(configfile)
                 editor.show()
                 editor.editorSaved.connect(lambda: self.__configChanged(idString))
@@ -279,7 +279,7 @@
                 ).format(configfile),
             )
 
-    def requestCompletions(self, editor, context, acText):
+    def requestCompletions(self, editor, context, acText):  # noqa: U100
         """
         Public method to request a list of possible completions.
 
@@ -336,7 +336,7 @@
             if editor is not None:
                 editor.completionsListReady(names, result["CompletionText"])
 
-    def getCallTips(self, editor, pos, commas):
+    def getCallTips(self, editor, pos, commas):  # noqa: U100
         """
         Public method to calculate calltips.
 
@@ -607,7 +607,7 @@
         @type dict
         """
         with contextlib.suppress(ImportError):
-            from eric7.QScintilla.Editor import ReferenceItem
+            from eric7.QScintilla.Editor import ReferenceItem  # noqa: I101
 
             if "Error" not in result:
                 # ignore errors silently

eric ide

mercurial