Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-72795: Make positional arguments with nargs='*' or REMAINDER non-required#124306

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commentedSep 21, 2024
edited by bedevere-appbot
Loading

This allows to use positional argument with nargs='*' and without default in mutually exclusive group and improves error message about required arguments.

… non-requiredThis allows to use positional argument with nargs='*' and without defaultin mutually exclusive group and improves error message about requiredarguments.
@serhiy-storchaka
Copy link
MemberAuthor

The part of this PR fixed also#63143, so I extracted it into separate PR#124307 (with adding tests). This PR should be merged after#124307.

@serhiy-storchakaserhiy-storchakaenabled auto-merge (squash)September 24, 2024 07:32
@serhiy-storchakaserhiy-storchaka merged commit3c83f99 intopython:mainSep 24, 2024
34 checks passed
@miss-islington-app
Copy link

Thanks@serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestSep 24, 2024
… non-required (pythonGH-124306)This allows to use positional argument with nargs='*' and without defaultin mutually exclusive group and improves error message about requiredarguments.(cherry picked from commit3c83f99)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

GH-124421 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelSep 24, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestSep 24, 2024
… non-required (pythonGH-124306)This allows to use positional argument with nargs='*' and without defaultin mutually exclusive group and improves error message about requiredarguments.(cherry picked from commit3c83f99)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

GH-124422 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelSep 24, 2024
@serhiy-storchakaserhiy-storchaka deleted the argparse-required-zero-or-more branchSeptember 24, 2024 08:43
serhiy-storchaka added a commit that referenced this pull requestSep 24, 2024
…R non-required (GH-124306) (GH-124422)This allows to use positional argument with nargs='*' and without defaultin mutually exclusive group and improves error message about requiredarguments.(cherry picked from commit3c83f99)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull requestOct 7, 2024
…R non-required (GH-124306) (#124421)This allows to use positional argument with nargs='*' and without defaultin mutually exclusive group and improves error message about requiredarguments.(cherry picked from commit3c83f99)Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
jodal added a commit to mopidy/mopidy that referenced this pull requestOct 13, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp