src/eric7/QScintilla/Editor.py

branch
eric7
changeset 10683
779cda568acb
parent 10679
4d3e0ce54322
child 10692
9becf9ca115c
--- a/src/eric7/QScintilla/Editor.py	Tue Apr 16 15:47:11 2024 +0200
+++ b/src/eric7/QScintilla/Editor.py	Sat Apr 20 18:01:36 2024 +0200
@@ -2426,7 +2426,7 @@
         @param error flag indicating whether the error highlight should be
             used
         @type bool
-        @param syntaxError flag indicating a syntax error
+        @param syntaxError flag indicating a syntax error (unused)
         @type bool
         """
         if line is None:
@@ -2468,39 +2468,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):
@@ -3964,7 +3964,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.
 
@@ -3972,7 +3972,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:
@@ -7296,7 +7296,7 @@
     def toggleWarning(
         self,
         line,
-        col,  # noqa: U100
+        _col,
         setWarning,
         msg="",
         warningType=EditorWarningKind.Code,
@@ -7308,7 +7308,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