Corrected some code style issues. eric7

Thu, 08 Dec 2022 18:09:33 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 08 Dec 2022 18:09:33 +0100
branch
eric7
changeset 9597
5f56fbdb3e3c
parent 9596
397f385b95d8
child 9598
71dd030d728a

Corrected some code style issues.

src/eric7/Documentation/Help/source.qch file | annotate | diff | comparison | revisions
src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py file | annotate | diff | comparison | revisions
src/eric7/ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
Binary file src/eric7/Documentation/Help/source.qch has changed
--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Thu Dec 08 18:04:00 2022 +0100
+++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyflakes/messages.py	Thu Dec 08 18:09:33 2022 +0100
@@ -391,7 +391,7 @@
 
 class UnusedAnnotation(Message):
     """
-    Class defining the "Unused Annotation" message
+    Class defining the "Unused Annotation" message.
 
     Indicates that a variable has been explicitly annotated but not actually
     used.
@@ -401,6 +401,13 @@
     message = "local variable %r is annotated but never used"
 
     def __init__(self, filename, loc, names):
+        """
+        Constructor
+
+        @param filename name of the file (string)
+        @param loc location of the issue
+        @param names names of unused variable (string)
+        """
         Message.__init__(self, filename, loc)
         self.message_args = (names,)
 
--- a/src/eric7/ViewManager/ViewManager.py	Thu Dec 08 18:04:00 2022 +0100
+++ b/src/eric7/ViewManager/ViewManager.py	Thu Dec 08 18:09:33 2022 +0100
@@ -5648,7 +5648,7 @@
         """
         editor.modificationStatusChanged.connect(self._modificationStatusChanged)
         editor.cursorChanged.connect(
-            lambda f, l, p: self.__cursorChanged(f, l, p, editor)
+            lambda fn, line, pos: self.__cursorChanged(fn, line, pos, editor)
         )
         editor.editorSaved.connect(lambda fn: self.__editorSaved(fn, editor))
         editor.editorRenamed.connect(lambda fn: self.__editorRenamed(fn, editor))

eric ide

mercurial