Fix one more import blocker

This commit is contained in:
Veronica Berglyd Olsen
2025-01-11 18:58:58 +01:00
parent 98db7db2b1
commit cfb93924b0
+3 -5
View File
@@ -29,7 +29,7 @@ import logging
import random import random
from collections.abc import Iterable from collections.abc import Iterable
from typing import TYPE_CHECKING, Literal, TypeGuard from typing import Literal, TypeGuard
from PyQt5.QtCore import QPointF, Qt from PyQt5.QtCore import QPointF, Qt
from PyQt5.QtGui import QColor, QIcon, QPainter, QPainterPath, QPixmap, QPolygonF from PyQt5.QtGui import QColor, QIcon, QPainter, QPainterPath, QPixmap, QPolygonF
@@ -62,10 +62,8 @@ class StatusEntry:
NO_ENTRY = StatusEntry("", QColor(0, 0, 0), nwStatusShape.SQUARE, QIcon(), 0) NO_ENTRY = StatusEntry("", QColor(0, 0, 0), nwStatusShape.SQUARE, QIcon(), 0)
if TYPE_CHECKING: # pragma: no cover T_UpdateEntry = list[tuple[str | None, StatusEntry]]
# Requires Python 3.10 T_StatusKind = Literal["s", "i"]
T_UpdateEntry = list[tuple[str | None, StatusEntry]]
T_StatusKind = Literal["s", "i"]
class NWStatus: class NWStatus: