Skip to content

Commit

Permalink
Merge pull request spyder-ide#87 from rhkarls/master
Browse files Browse the repository at this point in the history
PR: Use static and classmethods for plugin get_description and get_icon in order to work with Spyder 6a2
  • Loading branch information
jitseniesen authored Sep 13, 2023
2 parents eb9776c + 7342c12 commit d6ce369
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spyder_line_profiler/spyder/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ class SpyderLineProfiler(SpyderDockablePlugin, RunExecutor):
@staticmethod
def get_name():
return _("Line Profiler")

def get_description(self):

@staticmethod
def get_description():
return _("Line profiler display for Spyder")

def get_icon(self):

@classmethod
def get_icon(cls):
return qta.icon('mdi.speedometer', color=ima.MAIN_FG_COLOR)

def on_initialize(self):
Expand Down

0 comments on commit d6ce369

Please sign in to comment.