src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
diff -r 47be220abdaf -r 779cda568acb src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py	Tue Apr 16 15:47:11 2024 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Naming/NamingStyleChecker.py	Sat Apr 20 18:01:36 2024 +0200
@@ -269,13 +269,13 @@
         """
         return name in ("l", "O", "I")
 
-    def __checkNameToBeAvoided(self, node, parents):  # noqa: U100
+    def __checkNameToBeAvoided(self, node, _parents):
         """
         Private class to check the given node for a name to be avoided (N831).
 
         @param node AST note to check
         @type ast.Ast
-        @param parents list of parent nodes
+        @param _parents list of parent nodes (unused)
         @type list of ast.AST
         @yield tuple giving line number, offset within line and error code
         @ytype tuple of (int, int, str)
@@ -378,7 +378,7 @@
         if "Exception" in superClasses and not name.endswith("Error"):
             yield self.__error(node, "N818")
 
-    def __checkFunctionName(self, node, parents):  # noqa: U100
+    def __checkFunctionName(self, node, _parents):
         """
         Private class to check the given node for function name
         conventions (N802, N809).
@@ -391,7 +391,7 @@
 
         @param node AST note to check
         @type ast.FunctionDef or ast.AsynFunctionDef
-        @param parents list of parent nodes
+        @param _parents list of parent nodes (unused)
         @type list of ast.AST
         @yield tuple giving line number, offset within line and error code
         @ytype tuple of (int, int, str)
@@ -407,7 +407,7 @@
         if functionType == "function" and name[:2] == "__" and name[-2:] == "__":
             yield self.__error(node, "N809")
 
-    def __checkFunctionArgumentNames(self, node, parents):  # noqa: U100
+    def __checkFunctionArgumentNames(self, node, _parents):
         """
         Private class to check the argument names of functions
         (N803, N804, N805, N806).
@@ -418,7 +418,7 @@
 
         @param node AST note to check
         @type ast.FunctionDef or ast.AsynFunctionDef
-        @param parents list of parent nodes
+        @param _parents list of parent nodes (unused)
         @type list of ast.AST
         @yield tuple giving line number, offset within line and error code
         @ytype tuple of (int, int, str)
@@ -619,7 +619,7 @@
             )
         )
 
-    def __checkModule(self, node, parents):  # noqa: U100
+    def __checkModule(self, node, _parents):
         """
         Private method to check module naming conventions (N807, N808).
 
@@ -627,7 +627,7 @@
 
         @param node AST node to check
         @type ast.AST
-        @param parents list of parent nodes
+        @param _parents list of parent nodes (unused)
         @type list of ast.AST
         @yield tuple giving line number, offset within line and error code
         @ytype tuple of (int, int, str)
@@ -643,14 +643,14 @@
                 if packageName.lower() != packageName:
                     yield self.__error(node, "N808")
 
-    def __checkImportAs(self, node, parents):  # noqa: U100
+    def __checkImportAs(self, node, _parents):
         """
         Private method to check that imports don't change the
         naming convention (N811, N812, N813, N814, N815).
 
         @param node AST node to check
         @type ast.Import
-        @param parents list of parent nodes
+        @param _parents list of parent nodes (unused)
         @type list of ast.AST
         @yield tuple giving line number, offset within line and error code
         @ytype tuple of (int, int, str)

eric ide

mercurial