Update news/7962.bugfix. Fix linter
Update news/7962.bugfix. Fix linter

Co-Authored-By: Pradyun Gedam <d57123e724a720d5727375fe7954e02b18dae45d@gmail.com>
pradyunsg/pip,pfmoore/pip,sbidoul/pip,pypa/pip,pfmoore/pip,sbidoul/pip,pradyunsg/pip,pypa/pip