Skip to content

Commit

Permalink
chore: remove not needed parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Mar 11, 2025
1 parent 4534aa9 commit 7aaab3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions weblate/utils/templatetags/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
SPIN = '<span class="icon-spin" {} {}>{}</span>'


@register.simple_tag()
@register.simple_tag
def icon(name: str) -> str:
"""
Inlines SVG icon.
Expand All @@ -27,7 +27,7 @@ def icon(name: str) -> str:
return mark_safe(load_icon(name).decode()) # noqa: S308


@register.simple_tag()
@register.simple_tag
def loading_icon(name=None, hidden=True):
return format_html(
SPIN,
Expand Down
2 changes: 1 addition & 1 deletion weblate/utils/templatetags/safe_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
register = template.Library()


@register.simple_tag()
@register.simple_tag
def replace(value, char, replace_char):
return value.replace(char, replace_char)

Expand Down

0 comments on commit 7aaab3c

Please sign in to comment.