Repository navigation
Drop support for Python 3.10 - #276
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the change raising the minimum supported Python version to 3.11.
No open issues 🎉
What changed in this PR
Drops Python 3.10 support from the Todoist Python SDK and aligns packaging, tooling, tests, and documentation with Python >=3.11,<4.
Changes:
- Raises the minimum Python version and removes Python 3.10 from CI and tox.
- Replaces
UTCandSelfcompatibility fallbacks with standard-library imports. - Removes Python 3.10-only lockfile resolutions, including filelock 4.1.0, while retaining filelock 4.2.4 without dependency upgrades.
| File | Description |
|---|---|
uv.lock |
Updates Python constraints and removes obsolete resolutions and wheels. |
tox.ini |
Removes the Python 3.10 test environment. |
todoist_api_python/api.py |
Imports Self directly from typing. |
todoist_api_python/api_async.py |
Imports Self directly from typing. |
todoist_api_python/_core/utils.py |
Imports UTC directly from datetime. |
tests/test_api_tasks.py |
Removes the UTC compatibility fallback. |
tests/test_api_completed_tasks.py |
Removes the UTC compatibility fallback. |
README.md |
Documents the supported Python range. |
pyproject.toml |
Raises the Python minimum and Ruff target to 3.11. |
CHANGELOG.md |
Records Python 3.10 removal as a breaking change. |
.github/workflows/test.yml |
Removes Python 3.10 from the CI matrix. |
Review effort: Balanced
PotHix
left a comment
There was a problem hiding this comment.
Let's do it! It will require a major version, though.
| from datetime import UTC, datetime | ||
| from typing import TYPE_CHECKING, Any | ||
|
|
||
| if sys.version_info >= (3, 11): |
There was a problem hiding this comment.
Yes! This was mostly done now for security reasons, but this is nice. 😁
doistbot
left a comment
There was a problem hiding this comment.
This PR updates Drop support for Python 3.10. No issues were flagged in the reviewed diff.
Will it? I assume consumers on 3.10 would simply not get the new version (so it's not breaking). |
That's an interesting point! It's a breaking change, but there are enough limits to not break it without people knowing it :) |
Drop Python 3.10 support after its end of life on October 1, 2026. Require
>=3.11,<4, align CI/tox/Ruff and documentation, and remove the obsoleteUTC/Selfcompatibility fallbacks.Regenerate
uv.lockwithout upgrading dependencies: remove Python 3.10-only resolutions, including vulnerable filelock 4.1.0, while retaining filelock 4.2.4. Related #272 currently upgrades 4.2.4 → 4.2.10 only on Python 3.11+ despite its stale title/body; this PR removes the unsupported path that it leaves behind and does not incorporate that upgrade.Verified: 91 tests pass on each of Python 3.11–3.14; wheel/sdist metadata, installed-wheel smoke tests, docs build, source mypy, and lock checks pass. Full-repository Ruff/mypy and pre-commit failures reproduce on
mainwith no new findings.