diff options
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r-- | pylint/utils/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py index fc89bbacd..3843451d4 100644 --- a/pylint/utils/utils.py +++ b/pylint/utils/utils.py @@ -131,7 +131,7 @@ def get_rst_section(section, options, doc=None): if help_opt: formatted_help = normalize_text(help_opt, indent=" ") result += f"{formatted_help}\n" - if value: + if value and optname != "py-version": value = str(_format_option_value(optdict, value)) result += f"\n Default: ``{value.replace('`` ', '```` ``')}``\n" return result |