Fix Python 3.9 incompatible type

This commit is contained in:
Veronica Berglyd Olsen
2024-11-23 20:29:02 +01:00
parent c1ed0647fe
commit be6888f8c8
3 changed files with 12 additions and 4 deletions
+4 -2
View File
@@ -65,8 +65,10 @@ class StatusEntry:
NO_ENTRY = StatusEntry("", QColor(0, 0, 0), nwStatusShape.SQUARE, QIcon(), 0)
T_UpdateEntry = list[tuple[str | None, StatusEntry]]
T_StatusKind = Literal["s", "i"]
if TYPE_CHECKING: # pragma: no cover
# Requires Python 3.10
T_UpdateEntry = list[tuple[str | None, StatusEntry]]
T_StatusKind = Literal["s", "i"]
class NWStatus: