Pin urllib3 package to version 1.26.15.
Later versions (tested 2.0.2) are incompatible with poetry. The huge change to the .lock file is the result of
poetry add urllib3==1.26.15
as suggested in https://stackoverflow.com/questions/76295497/poetry-add-pkg-got-httpresponse-init-got-an-unexpected-keyword-argument
after first explicitly downgrading using
pip install urllib3==1.26.15