Bump flake8 to 5.0

This commit is contained in:
Raphael Michel
2022-09-20 10:37:57 +02:00
parent 167eb85aa3
commit 857f56c286
2 changed files with 4 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ def render_label(content, label_for=None, label_class=None, label_title='', labe
# usually checkboxes have overall empty labels and special labels per checkbox
# => remove for-attribute as well as "required"-text appended to label
if 'for' in attrs:
del(attrs['for'])
del attrs['for']
else:
opt += '<i class="sr-only label-required">, {}</i>'.format(pgettext('form', 'required')) if not optional else ''