-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
gh-91832: Add 'required' attr to argparse.Action repr #91841
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
Changes from 1 commit
8e74437
1447401
94d0853
ca77e29
cd0e30e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -850,6 +850,7 @@ def _get_kwargs(self): | |
| 'default', | ||
| 'type', | ||
| 'choices', | ||
| 'required', | ||
| 'help', | ||
| 'metavar', | ||
| ] | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1 @@ | ||||||
| Added 'required' to names list in Lib.argparse.Action. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python stdlib doesn’t use a root package name, Lib is just a source directory.
Suggested change
Also mentioning
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
How does this look ?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing. My point is that it does not matter that a line in the code uses
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does this sound then: Added a parameter "required" to the list returned by
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The bug really is: required is missing from repr output
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahhh..... Sorry, I'm still new here, and trying to get to know things. Thanks for taking the time to help me understand.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No worry! There is info in the devguide: https://devguide.python.org/pullrequest/ (for future PRs, please don’t force push, it makes reviews harder) |
||||||
Uh oh!
There was an error while loading. Please reload this page.