src/eric7/QScintilla/Editor.py

branch
server
changeset 10704
27d21e5163b8
parent 10680
306373ccf8fd
parent 10692
9becf9ca115c
child 10708
a6094987c1be
--- a/src/eric7/QScintilla/Editor.py	Wed Apr 10 17:03:56 2024 +0200
+++ b/src/eric7/QScintilla/Editor.py	Wed May 15 10:45:50 2024 +0200
@@ -2435,7 +2435,7 @@
             lineno = self.markerLine(self.lastHighlight)
             self.ensureVisible(lineno + 1)
 
-    def highlight(self, line=None, error=False, syntaxError=False):  # noqa: U100
+    def highlight(self, line=None, error=False):
         """
         Public method to highlight [or de-highlight] a particular line.
 
@@ -2444,8 +2444,6 @@
         @param error flag indicating whether the error highlight should be
             used
         @type bool
-        @param syntaxError flag indicating a syntax error
-        @type bool
         """
         if line is None:
             self.lastHighlight = None
@@ -2486,39 +2484,39 @@
 
     def __modified(
         self,
-        pos,  # noqa: U100
+        _pos,
         mtype,
-        text,  # noqa: U100
-        length,  # noqa: U100
+        _text,
+        _length,
         linesAdded,
         line,
-        foldNow,  # noqa: U100
-        foldPrev,  # noqa: U100
-        token,  # noqa: U100
-        annotationLinesAdded,  # noqa: U100
+        _foldNow,
+        _foldPrev,
+        _token,
+        _annotationLinesAdded,
     ):
         """
         Private method to handle changes of the number of lines.
 
-        @param pos start position of change
+        @param _pos start position of change (unused)
         @type int
         @param mtype flags identifying the change
         @type int
-        @param text text that is given to the Undo system
+        @param _text text that is given to the Undo system (unused)
         @type str
-        @param length length of the change
+        @param _length length of the change (unused)
         @type int
         @param linesAdded number of added/deleted lines
         @type int
         @param line line number of a fold level or marker change
         @type int
-        @param foldNow new fold level
+        @param _foldNow new fold level (unused)
         @type int
-        @param foldPrev previous fold level
+        @param _foldPrev previous fold level (unused)
         @type int
-        @param token ???
+        @param _token ??? (unused)
         @type int
-        @param annotationLinesAdded number of added/deleted annotation lines
+        @param _annotationLinesAdded number of added/deleted annotation lines (unused)
         @type int
         """
         if mtype & (self.SC_MOD_INSERTTEXT | self.SC_MOD_DELETETEXT):
@@ -3080,7 +3078,7 @@
                 printer.setDocName(self.noName)
             if printDialog.printRange() == QAbstractPrintDialog.PrintRange.Selection:
                 # get the selection
-                fromLine, fromIndex, toLine, toIndex = self.getSelection()
+                fromLine, _fromIndex, toLine, toIndex = self.getSelection()
                 if toIndex == 0:
                     toLine -= 1
                 # QScintilla seems to print one line more than told
@@ -4035,7 +4033,7 @@
                 QsciScintilla.SC_FOLDACTION_EXPAND,
             )
 
-    def __marginClicked(self, margin, line, modifiers):  # noqa: U100
+    def __marginClicked(self, margin, line, _modifiers):
         """
         Private slot to handle the marginClicked signal.
 
@@ -4043,7 +4041,7 @@
         @type int
         @param line line number of the click
         @type int
-        @param modifiers keyboard modifiers
+        @param _modifiers keyboard modifiers (unused)
         @type Qt.KeyboardModifiers
         """
         if margin == self.__bmMargin:
@@ -6915,7 +6913,7 @@
 
         error = problems.get("error")
         if error:
-            _fn, lineno, col, code, msg = error
+            _fn, lineno, col, _code, msg = error
             self.toggleSyntaxError(lineno, col, True, msg)
 
         for _fn, lineno, col, _code, msg in problems.get("py_warnings", []):
@@ -7400,7 +7398,7 @@
     def toggleWarning(
         self,
         line,
-        col,  # noqa: U100
+        _col,
         setWarning,
         msg="",
         warningType=EditorWarningKind.Code,
@@ -7412,7 +7410,7 @@
 
         @param line line number of the warning
         @type int
-        @param col column of the warning
+        @param _col column of the warning (unused)
         @type int
         @param setWarning flag indicating if the warning marker should be
             set or deleted

eric ide

mercurial