typecheck-mypy: install_deps> python -I -m pip install 'certifi; platform_system == "win32" or platform_system == "Darwin"' mypy==1.2.0 typing_extensions
.pkg: install_requires> python -I -m pip install 'setuptools>=63.0'
.pkg: _optional_hooks> python /opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python /opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: freeze> python -m pip freeze --all
.pkg: pip==23.1.2,setuptools==67.8.0,wheel==0.40.0
.pkg: build_sdist> python /opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/pyproject_api/_backend.py True setuptools.build_meta
typecheck-mypy: install_package_deps> python -I -m pip install 'certifi; os_name == "nt" or sys_platform == "darwin"' 'dnspython<3.0.0,>=1.16.0' 'pymongo-auth-aws<2.0.0' 'pymongocrypt<2.0.0,>=1.6.0' 'pyopenssl>=17.2.0' 'requests<3.0.0' 'service_identity>=18.1.0' zstandard
typecheck-mypy: install_package> python -I -m pip install --force-reinstall --no-deps /home/runner/work/mongo-python-driver/mongo-python-driver/.tox/.tmp/package/1/pymongo-4.5.0.dev0.tar.gz
typecheck-mypy: freeze> python -m pip freeze --all
typecheck-mypy: attrs==23.1.0,boto3==1.26.161,botocore==1.29.161,certifi==2023.5.7,cffi==1.15.1,charset-normalizer==3.1.0,cryptography==41.0.1,dnspython==2.3.0,idna==3.4,importlib-metadata==6.7.0,jmespath==1.0.1,mypy==1.2.0,mypy-extensions==1.0.0,pip==23.1.2,pyasn1==0.5.0,pyasn1-modules==0.3.0,pycparser==2.21,pymongo @ file:typecheck-mypy: commands[0]> mypy --install-types --non-interactive bson gridfs tools pymongo
Collecting types-pyOpenSSL
Using cached types_pyOpenSSL-23.2.0.1-py3-none-any.whl (7.1 kB)
Collecting types-requests
Using cached types_requests-2.31.0.1-py3-none-any.whl (14 kB)
Requirement already satisfied: cryptography>=35.0.0 in ./.tox/typecheck-mypy/lib/python3.7/site-packages (from types-pyOpenSSL) (41.0.1)
Collecting types-urllib3 (from types-requests)
Using cached types_urllib3-1.26.25.13-py3-none-any.whl (15 kB)
Requirement already satisfied: cffi>=1.12 in ./.tox/typecheck-mypy/lib/python3.7/site-packages (from cryptography>=35.0.0->types-pyOpenSSL) (1.15.1)
Requirement already satisfied: pycparser in ./.tox/typecheck-mypy/lib/python3.7/site-packages (from cffi>=1.12->cryptography>=35.0.0->types-pyOpenSSL) (2.21)
Installing collected packages: types-urllib3, types-requests, types-pyOpenSSL
Successfully installed types-pyOpenSSL-23.2.0.1 types-requests-2.31.0.1 types-urllib3-1.26.25.13
pymongo/mongo_client.py: note: In member "__init__" of class "MongoClient":
pymongo/mongo_client.py:825: error: Argument "server_selector" to
Installing missing stub packages:
/home/runner/work/mongo-python-driver/mongo-python-driver/.tox/typecheck-mypy/bin/python -m pip install types-pyOpenSSL types-requests
Found 1 error in 1 file (checked 85 source files)
"TopologySettings" has incompatible type "Callable[[Selection], Selection]";
expected
"Optional[Callable[[List[ServerDescription]], List[ServerDescription]]]"
[arg-type]
server_selector=options.server_selector,
^
typecheck-mypy: exit 1 (13.01 seconds) /home/runner/work/mongo-python-driver/mongo-python-driver> mypy --install-types --non-interactive bson gridfs tools pymongo pid=1881
.pkg: _exit> python /opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/pyproject_api/_backend.py True setuptools.build_meta
typecheck-mypy: FAIL code 1 (35.38=setup[22.37]+cmd[13.01] seconds)
evaluation failed :( (35.47 seconds)