argparse: remove incoherent and redundant docstring for private method (GH-101591)

Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
This commit is contained in:
Frank Dana 2024-02-21 06:32:28 -05:00 committed by GitHub
parent fbd40ce46e
commit b052fa381f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -698,14 +698,6 @@ class ArgumentDefaultsHelpFormatter(HelpFormatter):
"""
def _get_help_string(self, action):
"""
Add the default value to the option help message.
ArgumentDefaultsHelpFormatter and BooleanOptionalAction when it isn't
already present. This code will do that, detecting cornercases to
prevent duplicates or cases where it wouldn't make sense to the end
user.
"""
help = action.help
if help is None:
help = ''