eric6/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py

changeset 7988
c4c17121eff8
parent 7923
91e843545d9a
child 8043
0acf98cd089a
child 8205
4a0f1f896341
diff -r e8eb8370ea94 -r c4c17121eff8 eric6/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py	Sat Jan 16 16:32:01 2021 +0100
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py	Sat Jan 16 16:50:00 2021 +0100
@@ -93,8 +93,8 @@
         Private method to scan the given AST tree.
         
         @param node AST tree node to scan
-        @return tuple giving line number, offset within line, code and
-            checker function
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         for error in self.__visitNode(node):
             yield error
@@ -109,8 +109,8 @@
         Private method to inspect the given AST node.
         
         @param node AST tree node to inspect
-        @return tuple giving line number, offset within line, code and
-            checker function
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         if isinstance(node, ast.ClassDef):
             self.__tagClassFunctions(node)
@@ -229,8 +229,8 @@
         
         @param node AST note to check
         @param parents list of parent nodes
-        @return tuple giving line number, offset within line and error code
-            (integer, integer, string)
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         if isinstance(node, (ast.ClassDef, ast.FunctionDef,
                              ast.AsyncFunctionDef)):
@@ -278,8 +278,8 @@
         
         @param node AST note to check
         @param parents list of parent nodes
-        @return tuple giving line number, offset within line and error code
-            (integer, integer, string)
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         if not self.CamelcaseRegexp.match(node.name):
             yield self.__error(node, "N801")
@@ -297,8 +297,8 @@
         
         @param node AST note to check
         @param parents list of parent nodes
-        @return tuple giving line number, offset within line and error code
-            (integer, integer, string)
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         functionType = getattr(node, "function_type", "function")
         name = node.name
@@ -319,8 +319,8 @@
         
         @param node AST note to check
         @param parents list of parent nodes
-        @return tuple giving line number, offset within line and error code
-            (integer, integer, string)
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         if node.args.kwarg is not None:
             kwarg = node.args.kwarg.arg
@@ -366,8 +366,8 @@
         
         @param node AST note to check
         @param parents list of parent nodes
-        @return tuple giving line number, offset within line and error code
-            (integer, integer, string)
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         for parentFunc in reversed(parents):
             if isinstance(parentFunc, ast.ClassDef):
@@ -392,8 +392,8 @@
         
         @param node AST note to check
         @param parents list of parent nodes
-        @return tuple giving line number, offset within line and error code
-            (integer, integer, string)
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         if self.__filename:
             moduleName = os.path.splitext(os.path.basename(self.__filename))[0]
@@ -415,8 +415,8 @@
         
         @param node AST note to check
         @param parents list of parent nodes
-        @return tuple giving line number, offset within line and error code
-            (integer, integer, string)
+        @yield tuple giving line number, offset within line and error code
+        @ytype tuple of (int, int, str)
         """
         for name in node.names:
             if not name.asname:

eric ide

mercurial