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)
Description
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.