diff --git a/piptools/scripts/compile.py b/piptools/scripts/compile.py index 7c4706ee8..697c45074 100755 --- a/piptools/scripts/compile.py +++ b/piptools/scripts/compile.py @@ -338,10 +338,7 @@ def _determine_linesep( path_type=str, ), multiple=True, - help=( - "Constrain versions using the given constraints file. " - "This option can be used multiple times." - ), + help="Constrain versions using the given constraints file; may be used more than once.", ) def cli( ctx: click.Context, diff --git a/tests/test_utils.py b/tests/test_utils.py index 7684253d8..c549a0b71 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -634,7 +634,7 @@ def test_callback_config_file_defaults(pyproject_param, new_default, make_config ("trusted_host", "not-a-list"), ("annotate", "not-a-bool"), ("max_rounds", "not-an-int"), - ("constraint", "not-an-int"), + ("constraint", "not-an-list"), ), ) def test_callback_config_file_defaults_multi_validate_value(