Skip to content

Commit

Permalink
use cls instead of self for class methods
Browse files Browse the repository at this point in the history
  • Loading branch information
typemytype committed May 21, 2024
1 parent 08885f0 commit e3c94c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DesignspaceEditor2.roboFontExt/lib/designspaceEditor/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def __setitem__(self, key, value):
self.kwargs[key] = value

@classmethod
def single(self, who="", prefix="Did", action="Change", **kwargs):
postEvent(f"{self.notificationPrefix}{who}{prefix}{action}", **kwargs)
def single(cls, who="", prefix="Did", action="Change", **kwargs):
postEvent(f"{cls.notificationPrefix}{who}{prefix}{action}", **kwargs)


class UseVarLib:
Expand Down

0 comments on commit e3c94c7

Please sign in to comment.