Fix some typing issues

This commit is contained in:
Veronica Berglyd Olsen
2023-06-04 00:40:04 +02:00
parent 135ba3f290
commit 5f6335d8f9
7 changed files with 95 additions and 90 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ import xml.etree.ElementTree as ET
from enum import Enum
from time import time
from pathlib import Path
from typing import TYPE_CHECKING
from pathlib import Path
from novelwriter import __version__, __hexversion__
from novelwriter.common import (
@@ -284,7 +284,7 @@ class ProjectXMLReader:
elif xItem.tag == "importance":
self._parseStatusImport(xItem, data.itemImport)
elif xItem.tag == "lastHandle":
data.setLastHandle(self._parseDictKeyText(xItem))
data.setLastHandles(self._parseDictKeyText(xItem))
elif xItem.tag == "autoReplace":
if self._version >= 0x0102:
data.setAutoReplace(self._parseDictKeyText(xItem))