See https://github.com/scipy/scipy/issues/23642. The relevant `click` issue is https://github.com/pallets/click/issues/3065.