Use internal class
@@ -30,7 +30,7 @@ import pip
pip_major_version = int(pip.__version__.split(".")[0])
if pip_major_version >= 20:
from pip._internal.req import parse_requirements
- class PipSession: {}
+ from pip._internal.network.session import PipSession
elif pip_major_version >= 10:
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
