fossasia / open-event-server

Bad staticmethod argument detected PYL-W0211
Bug risk
Major
5 months ago4 years old
Static method with 'self' as first argument
32        return f'{self.event.name}'
33
34    @staticmethod
35    def format_sent_to(self):36        return f'{self.user.fullname} <{self.user.email}>'
37
38
Static method with 'self' as first argument
28    sent_to = fields.Method('format_sent_to')
29
30    @staticmethod
31    def format_event_name(self):32        return f'{self.event.name}'
33
34    @staticmethod