-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add support for Python 3.14 #9790
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #9790 +/- ##
===========================================
- Coverage 93.40% 93.33% -0.07%
===========================================
Files 211 209 -2
Lines 17012 16807 -205
===========================================
- Hits 15890 15687 -203
+ Misses 1122 1120 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ashovlin
approved these changes
Oct 14, 2025
57 tasks
aws-sdk-python-automation
added a commit
that referenced
this pull request
Oct 15, 2025
* release-1.42.53: Bumping version to 1.42.53 Update changelog based on model updates Add support for Python 3.14 (#9790)
1 task
|
|
aemous
pushed a commit
to aemous/aws-cli
that referenced
this pull request
Oct 22, 2025
adev-code
added a commit
to adev-code/aws-cli
that referenced
this pull request
Feb 2, 2026
Python 3.14+ argparse treats % characters in help strings as format specifiers. When service model documentation contains % (e.g., IAM's UpdateAccountPasswordPolicy RequireSymbols parameter), argparse raises: ValueError: unsupported format character '^' (0x5e) at index 129 This was already fixed for CLIArgument in PR aws#9790 but BooleanArgument was missed. This commit adds the same .replace('%', '%%') escaping to BooleanArgument.add_to_parser() and adds a test to verify all service operations with % in documentation work correctly. Fixes compatibility with Python 3.14+
adev-code
added a commit
to adev-code/aws-cli
that referenced
this pull request
Feb 2, 2026
Python 3.14+ argparse treats % characters in help strings as format specifiers. When service model documentation contains % (e.g., IAM's UpdateAccountPasswordPolicy RequireSymbols parameter), argparse raises: ValueError: unsupported format character '^' (0x5e) at index 129 This was already fixed for CLIArgument in PR aws#9790 but BooleanArgument was missed. This commit adds the same .replace('%', '%%') escaping to BooleanArgument.add_to_parser() and adds a test to verify all service operations with % in documentation work correctly. Fixes compatibility with Python 3.14+
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support for Python 3.14. Mostly chores:
It also replaces
%with%%when adding AWS CLI command parameters to the arg parser. The latest versions ofargparseadded a check to raise exceptions when invalid formatted strings are passed to the help docs: python/cpython#124899. Some command parameters will fail this check because they have%characters in them, eg fromaws s3api list-objects help:argparsesees%and thinks it's a formatted string that needs to be expanded. And then it throws an exception when it fails to do so. We escape it with%%so it's interpreted as a literal%.Verified that the bulit reference guide does not contain double

%: