fossasia / open-event-server

Consider decorating method with @staticmethod PYL-R0201
Performance
Major
1 occurrence in this check
Method could be a function
180    bcc = fields.List(fields.String(), default=[])
181
182    @validates_schema
183    def validate_fields(self, data):184        if not data:
185            return
186        data['message'] = clean_html(data.get('message'), allow_link=True)