Skip to content

Fixed incompatibilities with Python 3.14.3. (#1571)#1572

Merged
tleonhardt merged 1 commit intomainfrom
fix-python-3.14.3
Feb 5, 2026
Merged

Fixed incompatibilities with Python 3.14.3. (#1571)#1572
tleonhardt merged 1 commit intomainfrom
fix-python-3.14.3

Conversation

@tleonhardt
Copy link
Member

@tleonhardt tleonhardt commented Feb 5, 2026

Cherry-picked fixes for Python 3.14.3 from 3.x branch

Closes #1570

* Removed most overridden functions for custom argparse help formatting due to incompatibilities with newer versions.

* Updated _macro_list to use a method to build its parser.

* No longer storing Cmd/CommandSet instance in subcommand parsers. Using id(instance) instead.

* Fixed issue deep copying Cmd2ArgumentParser in Python 3.14.3.
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

🤖 Hi @tleonhardt, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

❌ Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 99.38%. Comparing base (b993421) to head (507c309).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd2/argparse_custom.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1572      +/-   ##
==========================================
+ Coverage   99.08%   99.38%   +0.30%     
==========================================
  Files          21       21              
  Lines        5009     4896     -113     
==========================================
- Hits         4963     4866      -97     
+ Misses         46       30      -16     
Flag Coverage Δ
unittests 99.38% <96.87%> (+0.30%) ⬆️

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.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

🤖 I'm sorry @tleonhardt, but I was unable to process your request. Please see the logs for more details.

@tleonhardt tleonhardt merged commit b6f86be into main Feb 5, 2026
40 of 42 checks passed
@tleonhardt tleonhardt deleted the fix-python-3.14.3 branch February 5, 2026 06:57
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.

Changes in Python 3.14.3 break cmd2

2 participants