Skip to content

Drop support for Python 3.9 and require 3.10 minimum #1473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 6, 2025
Merged

Conversation

tleonhardt
Copy link
Member

@tleonhardt tleonhardt commented Aug 5, 2025

Drop support for Python 3.9 and require 3.10 minimum.

Python 3.9 hits EOL for security updates in October 2025 - in about 2 months. Version 3.0.0 of cmd2 will likely be out sometime in September or October, about the time same time 3.9 hits EOL.

The primary change applies in this PR automatically by ruff is that type hints now support the | opertor and both Optional and Union are needed much less frequently from the typing module.

Moving to 3.10 minimum also opens up the door to begin using features like structural pattern matching in new code and/or code refactoring.

Also:

  • Upgrade versions of ruff and prettier used by pre-commit

The primary change is that type hints now support the `|` opertor and both `Optional` and `Union` are needed much less frequently from the typing module.

Also:
- Upgrade versions of ruff and prettier used by pre-commit
@tleonhardt tleonhardt added this to the 3.0.0 milestone Aug 5, 2025
@tleonhardt tleonhardt self-assigned this Aug 5, 2025
Copy link

codecov bot commented Aug 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.75%. Comparing base (5ac81d4) to head (1383b1a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1473      +/-   ##
==========================================
- Coverage   98.77%   98.75%   -0.02%     
==========================================
  Files          21       21              
  Lines        5878     5874       -4     
==========================================
- Hits         5806     5801       -5     
- Misses         72       73       +1     
Flag Coverage Δ
unittests 98.75% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@tleonhardt tleonhardt merged commit e7f3313 into main Aug 6, 2025
30 checks passed
@tleonhardt tleonhardt deleted the drop_python_39 branch August 6, 2025 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants