minor type update and unused import removal.

This commit is contained in:
Goffi 2025-07-04 12:28:40 +02:00
commit 16f9e07ce1

View file

@ -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 @@ class TextSyntaxes(object):
@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: