Skip to content
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

cli: fix TypeError in HelpfulArgumentParser for python 3.12.8 and 3.13.1 #15692

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

mhassan1
Copy link

@mhassan1 mhassan1 commented Dec 6, 2024

SUMMARY

This PR adds logic to HelpfulArgumentParser to handle _parse_known_args with either 3 (Python 3.12.7 and below and 3.13.0) or 4 (Python 3.12.8 and 3.13.1 and above) positional arguments.

Resolves #15687.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • CLI
AWX VERSION
awx: 0.1.dev34249+g91bb012
ADDITIONAL INFORMATION

N/A

@mhassan1 mhassan1 force-pushed the typeerror-py3.13.1 branch from 983d919 to b88d179 Compare January 3, 2025 15:41
@mhassan1 mhassan1 changed the title cli: fix TypeError in HelpfulArgumentParser for python 3.13.1 cli: fix TypeError in HelpfulArgumentParser for python 3.12.8 and 3.13.1 Jan 3, 2025
@mhassan1
Copy link
Author

mhassan1 commented Jan 3, 2025

@AlanCoding Please take a look, when you have a moment. Thanks.

@mhassan1 mhassan1 force-pushed the typeerror-py3.13.1 branch from b88d179 to 975df2b Compare January 3, 2025 15:47
Copy link

sonarqubecloud bot commented Jan 3, 2025

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.

AWX CLI crashes with Python 3.12.8 and 3.13.1
1 participant