Repository navigation
py(chore[floor]): Require Python 3.11 - #1102
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1102 +/- ##
=======================================
Coverage 82.55% 82.55%
=======================================
Files 31 31
Lines 2769 2769
Branches 518 518
=======================================
Hits 2286 2286
Misses 346 346
Partials 137 137 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
why: Python 3.10 reached end of life in October 2026. requires-python, the 3.10 classifier, the mypy and ruff targets and the version-guarded NotRequired import all still described a floor nobody supports. `uv lock` collapses the 3.10-only forks, and `ruff check --fix` applies the 3.11 rewrites the repo's existing UP and I rules select. what: - pyproject.toml: requires-python >=3.11, drop the 3.10 classifier, mypy python_version and ruff target-version to 3.11, drop the scripts-only py311 override. - uv.lock: re-resolved with `uv lock` alone. Only 3.10-only versions left (exceptiongroup, tomli, sphinx 8.1.3, watchdog 6.0.0 and similar); no package in the >=3.11 fork moved. - _internal/types.py: import NotRequired from typing without the sys.version_info branch. - private_path.py, _progress.py, load.py, shell.py and the plugin fixture _types.py: Self and NotRequired come from typing. ls.py: datetime.UTC. TypedDict and Unpack stay on typing_extensions. - .tool-versions: drop Python 3.10. Test plan: - ruff check and format --check, mypy (. and .github/scripts), .github/scripts tests, py.test (908 passed, 2 skipped), `just build-docs`, `uv build`.
why: AGENTS.md, the README, the quickstart and CONTRIBUTING still named Python 3.10 after the floor moved. what: - AGENTS.md, README.md, docs/quickstart.md: Python 3.11+. - .github/CONTRIBUTING.md: the CI scripts no longer differ from the library's floor. - CHANGES: add a breaking-change entry.
tony
force-pushed
the
chore/require-python-3.11
branch
from
November 8, 2026 01:01
edfe4fc to
49109b9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raise the Python floor from 3.10 to 3.11. Python 3.10 reached end of life
in October 2026. No release is cut.
Changes
requires-python = ">=3.11,<4.0"; drop the 3.10 classifier; mypy andruff target 3.11; drop the scripts-only py311 ruff override.
uv.lockre-resolved withuv lockalone: the 3.10-only forks vanishand no package in the
>=3.11fork moves.soupsievekeeps its 2.10entry for Python before 3.11.5, which is a separate fork.
ruff check --fixwith the existing rules:SelfandNotRequiredimport from
typing,datetime.UTC, and thesys.version_infobranch in
_internal/types.pygoes.TypedDictandUnpackstay ontyping_extensions.CHANGESgets a breaking-change entry.Test plan
ruff check,ruff format --check,mypy .,mypy --python-version 3.11 .github/scriptspytest .github/scripts/test_tmux_build.py --reruns=0py.test: 908 passed, 2 skippedjust build-docs,uv build