src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py

branch
eric7
changeset 10683
779cda568acb
parent 10621
f5631f40c4d9
child 11068
15f0385e0471
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Tue Apr 16 15:47:11 2024 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Sat Apr 20 18:01:36 2024 +0200
@@ -107,14 +107,14 @@
                 ):
                     self.__extensionMenus[extensionName][key].hideTearOffMenu()
 
-    def showContextMenu(self, menu, standardItems):  # noqa: U100
+    def showContextMenu(self, _menu, standardItems):
         """
         Public slot called before the context menu is shown.
 
         It enables/disables the VCS menu entries depending on the overall
         VCS status and the file status.
 
-        @param menu reference to the menu to be shown
+        @param _menu reference to the menu to be shown (unused)
         @type QMenu
         @param standardItems array of standard items that need
             activation/deactivation depending on the overall VCS status
@@ -143,7 +143,7 @@
                 act.setEnabled(True)
         self.__showExtensionMenu("mainMenu", controlled)
 
-    def showContextMenuMulti(self, menu, standardItems):  # noqa: U100
+    def showContextMenuMulti(self, _menu, standardItems):
         """
         Public slot called before the context menu (multiple selections) is
         shown.
@@ -151,7 +151,7 @@
         It enables/disables the VCS menu entries depending on the overall
         VCS status and the files status.
 
-        @param menu reference to the menu to be shown
+        @param _menu reference to the menu to be shown (unused)
         @type QMenu
         @param standardItems array of standard items that need
             activation/deactivation depending on the overall VCS status
@@ -187,14 +187,14 @@
                 act.setEnabled(True)
         self.__showExtensionMenu("multiMenu", controlled)
 
-    def showContextMenuDir(self, menu, standardItems):  # noqa: U100
+    def showContextMenuDir(self, _menu, standardItems):
         """
         Public slot called before the context menu is shown.
 
         It enables/disables the VCS menu entries depending on the overall
         VCS status and the directory status.
 
-        @param menu reference to the menu to be shown
+        @param _menu reference to the menu to be shown (unused)
         @type QMenu
         @param standardItems array of standard items that need
             activation/deactivation depending on the overall VCS status
@@ -218,14 +218,14 @@
                 act.setEnabled(True)
         self.__showExtensionMenu("dirMenu", controlled)
 
-    def showContextMenuDirMulti(self, menu, standardItems):  # noqa: U100
+    def showContextMenuDirMulti(self, _menu, standardItems):
         """
         Public slot called before the context menu is shown.
 
         It enables/disables the VCS menu entries depending on the overall
         VCS status and the directory status.
 
-        @param menu reference to the menu to be shown
+        @param _menu reference to the menu to be shown (unused)
         @type QMenu
         @param standardItems list of standard items that need
             activation/deactivation depending on the overall VCS status

eric ide

mercurial