Skip to content

Commit

Permalink
Fix Python 3.9 incompatible type
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Nov 23, 2024
1 parent c1ed064 commit bf62e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions novelwriter/core/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import random

from collections.abc import Iterable
from typing import TYPE_CHECKING, Literal
from typing import TYPE_CHECKING, Literal, Optional

from PyQt5.QtCore import QPointF, Qt
from PyQt5.QtGui import QColor, QIcon, QPainter, QPainterPath, QPixmap, QPolygonF
Expand Down Expand Up @@ -65,7 +65,7 @@ def duplicate(cls, source: StatusEntry) -> StatusEntry:

NO_ENTRY = StatusEntry("", QColor(0, 0, 0), nwStatusShape.SQUARE, QIcon(), 0)

T_UpdateEntry = list[tuple[str | None, StatusEntry]]
T_UpdateEntry = list[tuple[Optional[str], StatusEntry]]
T_StatusKind = Literal["s", "i"]


Expand Down

0 comments on commit bf62e80

Please sign in to comment.