Fix typing errors

This commit is contained in:
Veronica Berglyd Olsen
2025-03-30 23:17:25 +02:00
parent e8c4f2db25
commit 15de0c8dd7
8 changed files with 18 additions and 14 deletions
+1
View File
@@ -598,6 +598,7 @@ class ToOdt(Tokenizer):
def _textStyle(self, hFmt: int, fClass: str = "") -> str:
"""Return a text style for a given style code."""
tKey = str(hFmt)
color = None
if fClass and (color := self._classes.get(fClass)):
tKey = f"{tKey}:{fClass}"
if tKey in self._autoText: