-
Notifications
You must be signed in to change notification settings - Fork 670
fix: duplicate subparsers being added to argparse #2014
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
@nejch Seems like Python 3.11.0-beta.1 doesn't like what we are doing... |
I think this is the upstream commit:
|
The PR upstream: python/cpython#18605 |
Probably should create an issue for this instead of my dummy PR 😊 |
d64b159
to
14df327
Compare
14df327
to
6f013d1
Compare
Codecov Report
@@ Coverage Diff @@
## main #2014 +/- ##
==========================================
- Coverage 92.65% 92.62% -0.04%
==========================================
Files 78 78
Lines 4944 4949 +5
==========================================
+ Hits 4581 4584 +3
- Misses 363 365 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
nejch
reviewed
May 8, 2022
e812380
to
c7dcedd
Compare
nejch
reviewed
May 9, 2022
Python 3.11 added an additional check in the argparse libary which detected duplicate subparsers being added. We had duplicate subparsers being added. Make sure we don't add duplicate subparsers. Closes: #2015
c7dcedd
to
f55
8117
3fd3
Compare
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.
Python 3.11 added an additional check in the argparse libary which
detected duplicate subparsers being added. We had duplicate subparsers
being added.
Make sure we don't add duplicate subparsers.
Closes: #2015