Commit 1adb17b
authored
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.
1 parent b20722c commit 1adb17b
File tree
3 files changed
+21
-14
lines changed- Lib
- test
- Misc/NEWS.d/next/Library
3 files changed
+21
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
753 | 756 | | |
754 | 757 | | |
755 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5419 | 5419 | | |
5420 | 5420 | | |
5421 | 5421 | | |
| 5422 | + | |
5422 | 5423 | | |
5423 | 5424 | | |
5424 | 5425 | | |
| |||
5432 | 5433 | | |
5433 | 5434 | | |
5434 | 5435 | | |
5435 | | - | |
5436 | | - | |
| 5436 | + | |
| 5437 | + | |
5437 | 5438 | | |
5438 | 5439 | | |
5439 | 5440 | | |
| |||
5448 | 5449 | | |
5449 | 5450 | | |
5450 | 5451 | | |
| 5452 | + | |
5451 | 5453 | | |
5452 | 5454 | | |
5453 | 5455 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments