Skip to content

Commit

Permalink
Tentative: fix for ParamSpec on Python < 3.10
Browse files Browse the repository at this point in the history
Alternate solution is to remove the callable typing on CallAfter and CallLater
  • Loading branch information
lojack5 committed Oct 19, 2023
1 parent 1bdc66a commit 5167558
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etgtools/pi_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
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
"""

Expand Down
1 change: 1 addition & 0 deletions requirements/devel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ markupsafe==1.1.1
doc2dash==2.3.0
beautifulsoup4
attrdict3 ; sys_platform == 'win32'
typing-extensions; python_version < '3.10'
1 change: 1 addition & 0 deletions requirements/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ numpy < 1.17 ; python_version <= '2.7'
numpy ; python_version >= '3.0' and python_version < '3.12'
# pillow < 3.0
six
typing-extensions; python_version < '3.10'

0 comments on commit 5167558

Please sign in to comment.