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, from typing import (Any, overload, TypeAlias, TypeVar, ParamSpec, Generic,
Union, Optional, List, Tuple, Callable Union, Optional, List, Tuple, Callable
) )
try:
from typing import ParamSpec
except ImportError:
from typing_extensions import ParamSpec
""" """

View File

@@ -22,3 +22,4 @@ markupsafe==1.1.1
doc2dash==2.3.0 doc2dash==2.3.0
beautifulsoup4 beautifulsoup4
attrdict3 ; sys_platform == 'win32' attrdict3 ; sys_platform == 'win32'
typing-extensions; python_version < '3.10'

View File

@@ -3,3 +3,4 @@ numpy < 1.17 ; python_version <= '2.7'
numpy ; python_version >= '3.0' and python_version < '3.12' numpy ; python_version >= '3.0' and python_version < '3.12'
# pillow < 3.0 # pillow < 3.0
six six
typing-extensions; python_version < '3.10'