Skip to content
Myr

completion doesn't fail with `expose_value=False` (#2556)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by GitHub · parents 5499471, 4cf7c6c · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:src/click/shell_completion.py+2 added-1 removed
441 unmodified lines
442 if not isinstance(param, Argument):443 return False444445 assert param.name is not None446 value = ctx.params[param.name]446 # Will be None if expose_value is False.447 value = ctx.params.get(param.name)448 return (449 param.nargs == -1450 or ctx.get_parameter_source(param.name) is not ParameterSource.COMMANDLINE451 or (
142 unmodified lines
modified:CHANGES.rst+1 added
30 unmodified lines
31- Remove unnecessary attempt to detect MSYS2 environment. :issue:`2355`32- Remove outdated and unnecessary detection of App Engine environment. :pr:`2554`33- ``echo()`` does not fail when no streams are attached, such as with ``pythonw`` on34 Windows. :issue:`2415`35- Argument with ``expose_value=False`` do not cause completion to fail. :issue:`2336`363738Version 8.1.339-------------
1040 unmodified lines