Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_misc_text_syntaxes.py @ 4380:2e3ce128973c
minor type update and unused import removal.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 04 Jul 2025 12:28:40 +0200 |
parents | 111dce64dcb5 |
children |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_misc_text_syntaxes.py Fri Jul 04 12:28:00 2025 +0200 +++ b/libervia/backend/plugins/plugin_misc_text_syntaxes.py Fri Jul 04 12:28:40 2025 +0200 @@ -20,7 +20,6 @@ from functools import partial from html import escape import re -from typing import Set from twisted.internet import defer from twisted.internet.threads import deferToThread @@ -379,7 +378,7 @@ @param styles_raw: CSS styles @return: cleaned styles """ - styles: List[str] = styles_raw.split(";") + styles: list[str] = styles_raw.split(";") cleaned_styles = [] for style in styles: try: