Change minimum Python version to 3.10

This commit is contained in:
DevilXD committed 2024-08-30 17:19:25 +02:00
1 parent 3f496f82fb
commit 5456986f98
4 files changed
+4 -12

No files matched your search

+1 -11
View File
@@ -19,9 +19,7 @@ from contextlib import suppress
from functools import cached_property
from datetime import datetime, timezone
from collections import abc, OrderedDict
from typing import (
Any, Literal, MutableSet, Callable, Generic, Mapping, TypeVar, cast, TYPE_CHECKING
)
from typing import Any, Literal, MutableSet, Callable, Generic, Mapping, TypeVar, ParamSpec, cast
import yarl
from PIL.ImageTk import PhotoImage
@@ -31,14 +29,6 @@ from constants import JsonType, IS_PACKAGED
from exceptions import ExitRequest, ReloadRequest
from constants import _resource_path as resource_path # noqa
if TYPE_CHECKING:
from typing_extensions import ParamSpec
else:
# stub it
class ParamSpec:
def __init__(*args, **kwargs):
pass
_T = TypeVar("_T") # type
_D = TypeVar("_D") # default