Skip to content

build: Require Python 3.11 - #272

Merged
jodal merged 3 commits into
python-3.15from
drop-python-3.10
Oct 10, 2026
Merged

jodal merged 3 commits into
python-3.15from
drop-python-3.10

Conversation

@jodal

@jodal jodal commented Oct 10, 2026

Copy link
Copy Markdown
Owner

🤖 Summary

Stacked on #271.

Python 3.10 is end-of-life. This PR removes support for it.

  • Set requires-python = ">=3.11" and pyright pythonVersion = "3.11".
  • Remove the ruff target-version. Ruff takes the target version from requires-python.
  • Remove the 3.10 tox env and CI job.
  • Change "Python 3.10 or newer" to 3.11 in README.md, docs/index.md, AGENTS.md, and the requires-python headers of the examples.

With Python 3.11 as the target, ruff finds these upgrades:

  • Actor.start() returns ActorRef[Self], and Actor.actor_ref is typed ActorRef[Self]. These replace the private A TypeVar, and the PYI019 ignore is removed. The inferred types for subclasses are the same.
  • The test-only LogLevel enum is a StrEnum. The tests do not call str() on it, so the StrEnum string behavior has no effect.

@codecov

codecov Bot commented Oct 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.00%. Comparing base (ead139d) to head (03542a6).

Additional details and impacted files
@@               Coverage Diff               @@
##           python-3.15     #272      +/-   ##
===============================================
- Coverage        94.01%   94.00%   -0.02%     
===============================================
  Files               14       14              
  Lines              585      584       -1     
  Branches            51       51              
===============================================
- Hits               550      549       -1     
  Misses              31       31              
  Partials             4        4              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jodal
jodal added this pull request to stack #273 October 10, 2026 17:21
@jodal
jodal merged commit 8e2ca22 into main Oct 10, 2026
15 checks passed
@jodal
jodal deleted the drop-python-3.10 branch October 10, 2026 17:23
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