Tentative: fix for ParamSpec on Python < 3.10

Alternate solution is to remove the callable typing on CallAfter and CallLater
This commit is contained in:
lojack5
2023-10-18 14:25:09 -06:00
parent 1bdc66afc6
commit 51675584d8
3 changed files with 6 additions and 0 deletions

View File

@@ -84,6 +84,10 @@ from enum import IntEnum, IntFlag, auto
from typing import (Any, overload, TypeAlias, TypeVar, ParamSpec, Generic,
Union, Optional, List, Tuple, Callable
)
try:
from typing import ParamSpec
except ImportError:
from typing_extensions import ParamSpec
"""