Commit dafac8a
For optional arguments with required=True, the ArgumentDefaultsHelpFormatter
would always add a " (default: None)" to the end of the help text.
Since that's a bit misleading, it is removed with this commit.
(cherry picked from commit 1adb17b)
Co-authored-by: Fabian Henze <[email protected]>
1 parent 69ecb4c commit dafac8a
File tree
3 files changed
+14
-7
lines changed- Lib
- test
- Misc/NEWS.d/next/Library
3 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
747 | 750 | | |
748 | 751 | | |
749 | 752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5328 | 5328 | | |
5329 | 5329 | | |
5330 | 5330 | | |
| 5331 | + | |
5331 | 5332 | | |
5332 | 5333 | | |
5333 | 5334 | | |
| |||
5341 | 5342 | | |
5342 | 5343 | | |
5343 | 5344 | | |
5344 | | - | |
5345 | | - | |
| 5345 | + | |
| 5346 | + | |
5346 | 5347 | | |
5347 | 5348 | | |
5348 | 5349 | | |
| |||
5357 | 5358 | | |
5358 | 5359 | | |
5359 | 5360 | | |
| 5361 | + | |
5360 | 5362 | | |
5361 | 5363 | | |
5362 | 5364 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments