Skip to content

Commit 4ccf7d2

Browse files
committed
Correct use of @staticmethod
1 parent 57c8cba commit 4ccf7d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

addonmanager_toolbar_adapter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def get_toolbar_with_name(self, name: str):
8787

8888
@staticmethod
8989
def create_custom_command(
90-
cls,
9190
toolbar,
9291
filename,
9392
menu_text,
@@ -132,6 +131,6 @@ def get_custom_toolbars(self):
132131
return self.params.GetGroups()
133132

134133
@staticmethod
135-
def find_custom_command(cls, filename):
134+
def find_custom_command(filename):
136135
"""Wrap calls to FreeCADGui.Command.findCustomCommand so it can be faked in testing."""
137136
return fci.FreeCADGui.Command.findCustomCommand(filename)

0 commit comments

Comments
 (0)