79419773

Date: 2025-02-07 01:28:47
Score: 1
Natty:
Report link

Just use a @staticmethod per the advice in https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/no-self-use.html

class Example:
    @staticmethod
    def on_enter(dummy_game, dummy_player):
        """Defines effects when entering area."""
        return None
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @staticmethod
  • High reputation (-1):
Posted by: Thomas Grainger