fossasia / open-event-server

Unexpected keyword argument in function call PYL-E1123
Bug risk
Critical
5 months agoa year old
Unexpected keyword argument 'styles' in function call
56def strip_tags(html):
57    if html is None:
58        return None
59    return bleach.clean(html, tags=[], attributes={}, styles=[], strip=True)
Unexpected keyword argument 'styles' in function call
45        tags.append('a')
46        attrs['a'] = ['href']
47    styles = ['text-align', 'font-weight', 'text-decoration']
48    cleaned = bleach.clean(html, tags=tags, attributes=attrs, styles=styles, strip=True)49    return bleach.linkify(
50        cleaned,
51        callbacks=[nofollow, target_blank],
Unexpected keyword argument 'styles' in function call
 84def strip_tags(html):
 85    if html is None:
 86        return None
 87    return bleach.clean(html, tags=[], attributes={}, styles=[], strip=True) 88
 89
 90def get_serializer(secret_key=None):
Unexpected keyword argument 'attachment_filename' in function call
27    from .helpers.tasks import delete_translations
28
29    delete_translations.apply_async(kwargs={'zip_file_path': path_to_zip}, countdown=600)
30    return send_file(31        path_to_zip,
32        mimetype='application/zip',
33        as_attachment=True,