Commit 3c83f99
authored
pythongh-72795: Make positional arguments with nargs='*' or REMAINDER non-required (pythonGH-124306)
This allows to use positional argument with nargs='*' and without default
in mutually exclusive group and improves error message about required
arguments.1 parent c578271 commit 3c83f99
File tree
3 files changed
+32
-8
lines changed- Lib
- test
- Misc/NEWS.d/next/Library
3 files changed
+32
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1532 | 1532 | | |
1533 | 1533 | | |
1534 | 1534 | | |
1535 | | - | |
1536 | | - | |
1537 | | - | |
| 1535 | + | |
| 1536 | + | |
1538 | 1537 | | |
1539 | 1538 | | |
1540 | 1539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3079 | 3079 | | |
3080 | 3080 | | |
3081 | 3081 | | |
3082 | | - | |
| 3082 | + | |
3083 | 3083 | | |
3084 | 3084 | | |
3085 | 3085 | | |
| |||
3090 | 3090 | | |
3091 | 3091 | | |
3092 | 3092 | | |
3093 | | - | |
3094 | | - | |
| 3093 | + | |
| 3094 | + | |
3095 | 3095 | | |
3096 | 3096 | | |
3097 | 3097 | | |
3098 | 3098 | | |
3099 | | - | |
| 3099 | + | |
3100 | 3100 | | |
3101 | 3101 | | |
3102 | 3102 | | |
| |||
6369 | 6369 | | |
6370 | 6370 | | |
6371 | 6371 | | |
6372 | | - | |
| 6372 | + | |
| 6373 | + | |
| 6374 | + | |
| 6375 | + | |
| 6376 | + | |
| 6377 | + | |
| 6378 | + | |
| 6379 | + | |
| 6380 | + | |
| 6381 | + | |
| 6382 | + | |
| 6383 | + | |
| 6384 | + | |
| 6385 | + | |
| 6386 | + | |
| 6387 | + | |
| 6388 | + | |
| 6389 | + | |
| 6390 | + | |
| 6391 | + | |
| 6392 | + | |
| 6393 | + | |
6373 | 6394 | | |
6374 | 6395 | | |
6375 | 6396 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments