minor type update and unused import removal.
This commit is contained in:
parent
0df0b0a5d0
commit
16f9e07ce1
2 changed files with 1 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ from libervia.backend.core.constants import Const as C
|
|||
from libervia.backend.core.core_types import SatXMPPEntity
|
||||
from libervia.backend.core.i18n import _
|
||||
from libervia.backend.core.log import getLogger
|
||||
from libervia.backend.memory.sqla import Storage
|
||||
from libervia.backend.memory.sqla_mapping import History
|
||||
from libervia.backend.models.core import MessageData
|
||||
from libervia.backend.models.types import JIDType
|
||||
|
|
|
|||
Loading…
Reference in a new issue