Skip to content

Fixed incompatibilities with Python 3.14.3.#1571

Merged
kmvanbrunt merged 6 commits into3.xfrom
fix_argparse
Feb 5, 2026
Merged

Fixed incompatibilities with Python 3.14.3.#1571
kmvanbrunt merged 6 commits into3.xfrom
fix_argparse

Conversation

@kmvanbrunt
Copy link
Member

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

🤖 Hi @kmvanbrunt, 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.23%. Comparing base (95f3fd8) to head (a1e2efb).
⚠️ Report is 1 commits behind head on 3.x.

Files with missing lines Patch % Lines
cmd2/argparse_custom.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              3.x    #1571      +/-   ##
==========================================
+ Coverage   98.97%   99.23%   +0.26%     
==========================================
  Files          21       21              
  Lines        4957     4844     -113     
==========================================
- Hits         4906     4807      -99     
+ Misses         51       37      -14     
Flag Coverage Δ
unittests 99.23% <96.87%> (+0.26%) ⬆️

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 @kmvanbrunt, but I was unable to process your request. Please see the logs for more details.

@kmvanbrunt kmvanbrunt merged commit 1b6c211 into 3.x Feb 5, 2026
33 of 34 checks passed
@kmvanbrunt kmvanbrunt deleted the fix_argparse branch February 5, 2026 06:43
tleonhardt pushed a commit that referenced this pull request Feb 5, 2026
* 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.
tleonhardt added a commit that referenced this pull request Feb 5, 2026
* 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.

Co-authored-by: Kevin Van Brunt <kmvanbrunt@gmail.com>
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.

2 participants