Skip to content

Support Python 3.13–3.15, drop 3.12 - #24

Open
virgesmith wants to merge 6 commits into
mainfrom
update-python-version
Open

virgesmith wants to merge 6 commits into
mainfrom
update-python-version

Conversation

@virgesmith

Copy link
Copy Markdown
Owner

Summary

  • Python support: requires-python >=3.13, classifiers and CI matrix moved to 3.13 / 3.14 / 3.15. Dropping 3.12 is a breaking change, noted under Unreleased in relnotes.md (no version bump yet).
  • Tooling: bumped actions/checkout to v7, setup-uv to v10.2.0, and pre-commit revs (uv 0.12.23, ruff v0.16.10, ty v0.0.85). Dev-dependency floors for ruff/ty raised to match.
  • ty 0.0.85 fix: collect failed with too-many-positional-arguments because calling an unbounded type[_CollectT] is checked against object(). The implementation signature now takes Callable[[Iterable[T]], _CollectT]; public overloads are unchanged, and the ty: ignore is gone. Casts that newer ty no longer needs were removed.
  • 3.13-target lint: ruff infers the target from requires-python, so UP043 (Generator[X, None, None] → Generator[X]) and B911 (batched explicit strict=False) now fire; both fixed with no behaviour change.
  • AGENTS.md CI matrix line updated; README code block reformatted by the new ruff.

Test plan

  • uv run ruff check, ruff format --check, ty check src clean
  • uv run pytest: 264 passed, 100% coverage (local run on 3.15.0rc3)
  • doc/apidoc.md regenerated — no change
  • Check CI logs that the 3.15 jobs resolve a final 3.15 release, not a pre-release

🤖 Generated with Claude Code

virgesmith and others added 6 commits October 7, 2026 10:57
- requires-python >=3.13; classifiers and CI matrix updated to 3.13/3.14/3.15
- Bump actions/checkout v7, setup-uv v10.2.0, pre-commit hook revs (uv, ruff, ty)
- Raise ruff/ty dev-dependency floors to match pre-commit pins
- Fix ty 0.0.85 error in collect: type container as Callable[[Iterable[T]], _CollectT]
- Remove casts no longer needed by newer ty
- Apply 3.13-target lint fixes (UP043 Generator defaults, B911 batched strict)
- Update AGENTS.md CI matrix and relnotes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Import display from IPython explicitly so ty can resolve it, and install
the examples extra in CI so IPython is available to ty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant