Remove code excluded due to Python 3.9

This commit is contained in:
Veronica Berglyd Olsen
2025-01-11 18:53:51 +01:00
parent 31c58c29d5
commit 98db7db2b1
4 changed files with 4 additions and 16 deletions
+1 -4
View File
@@ -33,7 +33,7 @@ from collections.abc import Callable
from configparser import ConfigParser
from datetime import datetime
from pathlib import Path
from typing import TYPE_CHECKING, Any, Literal, TypeVar
from typing import Any, Literal, TypeGuard, TypeVar
from urllib.parse import urljoin
from urllib.request import pathname2url
@@ -44,9 +44,6 @@ from novelwriter.constants import nwConst, nwLabels, nwUnicode, trConst
from novelwriter.enum import nwItemClass, nwItemLayout, nwItemType
from novelwriter.error import logException
if TYPE_CHECKING: # pragma: no cover
from typing import TypeGuard # Requires Python 3.10
logger = logging.getLogger(__name__)
_Type = TypeVar("_Type")