diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2021-09-25 13:28:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-25 13:28:08 +0200 |
commit | 2c0e27330f494856799de9fd9cfb02fa71dacf27 (patch) | |
tree | 68090bdfad47cf5208329e7c2dbb77a8fe7a90aa /pylint/utils/utils.py | |
parent | ae4e39e986acf73f78b52422c902bcd28cbd985f (diff) | |
download | pylint-git-2c0e27330f494856799de9fd9cfb02fa71dacf27.tar.gz |
Small py-version improvements (#5069)
* Add py-version requirement to checker docs
* Improve default value
* Improve option parser error message
* Fix py-version help text
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 |