Closed
Description
Description
Attempting to follow the steps in the documentation for adding zsh shell completion raises an error regarding the use of compadd
outside of a completion function. This seems to be new with 23.2 and added in #11417.
Expected behavior
As in previous versions, following the documented steps should successfully add completion for pip.
pip version
23.2
Python version
3.11.4
OS
macOS 12.6.8
How to Reproduce
As documented:
- Execute
python -m pip completion --zsh >> ~/.zprofile
or add eval "pip completion --zsh
" to.zprofile
or.zshrc
- Start a new shell
Output
From startup:
/dev/fd/16:compadd:4: can only be called from completion function
Code of Conduct
- I agree to follow the PSF Code of Conduct.