Skip to content

Commit 8983a1e

Browse files
auscompgeekpre-commit-ci-lite[bot]pokey
authored
Target Python 3.11 (Talon 0.4) (#1880)
Our previous Python 3.9 target matched up with Talon 0.3. Since #1757 (comment) (merged into #1738), cursorless-talon depends on Python 3.10 features. Attempting to use cursorless-talon with Talon 0.3.1 results in the following error: ``` 2023-09-09 23:17:40 ERROR user.cursorless-talon.src.spoken_forms import failed 13: lib/python3.9/threading.py:937* # loader thread 12: lib/python3.9/threading.py:980* 11: lib/python3.9/threading.py:917* 10: app/resources/loader.py:894| 9: app/resources/loader.py:830| 8: app/resources/loader.py:648| 7: app/resources/loader.py:684| 6: app/resources/loader.py:738| 5: app/resources/loader.py:432| # [stack splice] 4: lib/python3.9/importlib/__init__.py:127| 3: app/resources/loader.py:253| 2: app/resources/loader.py:248| 1: user/cursorless-talon/src/spoken_forms.py:3 | from typing import Callable, Concatenate, ParamSpec, TypeVar ImportError: cannot import name 'Concatenate' from 'typing' (/Applications/Talon.app/Contents/Resources/python/lib/python39.zip/typing.pyc) ``` Talon 0.4 has Python 3.11. This bumps our target to match latest public Talon. ## Checklist - [ ] ~I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)~ - [ ] ~I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet)~ - [ ] I have not broken the cheatsheet - [ ] I have run the Talon tests --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Pokey Rule <[email protected]>
1 parent 77cc4b2 commit 8983a1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.black]
2-
target-version = ["py39"]
2+
target-version = ["py311"]
33
force-exclude = '''
44
(
55
^/vendor/
@@ -9,8 +9,8 @@ force-exclude = '''
99

1010
[tool.ruff]
1111
select = ["E", "F", "C4", "I001", "UP", "SIM"]
12-
ignore = ["E501", "SIM105", "UP035"]
13-
target-version = "py39"
12+
ignore = ["E501", "SIM105", "UP007", "UP035"]
13+
target-version = "py311"
1414
extend-exclude = ["vendor", "data/playground/**/*.py"]
1515

1616
[tool.pyright]

0 commit comments

Comments
 (0)