Right way is -
class P: # Player Stats @instancemethod def player_stats(self): self.inventory = {} self.current_pickaxe = None