chilly-cricket-5423
03/27/2024, 1:29 PMimport sendgrid
import remote_pdb
import sqlalchemy
I get a mypy error about sqlalchemy
missing.
However, if I check this file:
import sendgrid
import sqlalchemy
Then sqlalchemy
stubs are present.
I did inspect the sandbox, and it seems that the python executable PEX venv is indeed missing the sqlalchemy2-stubs from the failing sandbox. (This is not the mypy cache poisoning bug)happy-kitchen-89482
03/27/2024, 7:32 PMremote_pdb
to cause the stubs to go missing. Is this consistent, or is it more of a heisenbug?happy-kitchen-89482
03/27/2024, 7:33 PMchilly-cricket-5423
03/27/2024, 7:41 PMchilly-cricket-5423
03/27/2024, 7:42 PMrequirement.pex
with PEX_VERBOSE=10
and I can see
pex: Selected SQLAlchemy 1.4.52 via sqlalchemy==1.4.52; python_full_version >= "3.11.3" and python_full_version < "3.12.0" and discarded SQLAlchemy 1.4.52 via sqlalchemy[asyncio,mypy]==1.4.52; python_full_version >= "3.11.3" and python_full_version < "3.12.0", SQLAlchemy 1.4.52 via sqlalchemy[mypy]==1.4.52; python_full_version >= "3.11.3" and python_full_version < "3.12.0".
chilly-cricket-5423
03/27/2024, 7:42 PMchilly-cricket-5423
03/27/2024, 7:43 PMchilly-cricket-5423
03/27/2024, 7:44 PMcurved-manchester-66006
03/27/2024, 7:44 PMmypy
extra?chilly-cricket-5423
03/27/2024, 7:45 PMchilly-cricket-5423
03/27/2024, 7:46 PMchilly-cricket-5423
03/27/2024, 7:46 PMcurved-manchester-66006
03/27/2024, 7:50 PMoverrides={
"sqlalchemy": {
"dependencies": [ "//3rdparty/py#sqlalchemy2-stubs"]
},
chilly-cricket-5423
03/27/2024, 7:52 PMpoetry export
does all transitive package)chilly-cricket-5423
03/27/2024, 7:53 PMchilly-cricket-5423
03/27/2024, 7:53 PMgoogle-api-core==2.18.0 ; python_full_version >= "3.11.3" and python_full_version < "3.12.0"
google-api-core[grpc]==2.18.0 ; python_full_version >= "3.11.3" and python_full_version < "3.12.0"
chilly-cricket-5423
03/27/2024, 7:53 PMgrpc
extra will be installed or notchilly-cricket-5423
03/27/2024, 7:57 PMchilly-cricket-5423
03/27/2024, 8:02 PMchilly-cricket-5423
03/27/2024, 8:16 PMrm -rf ~/.pex ~/.cache/pants
), but seems that removing duplicates in my python_requirements
fixed it!