ancient-france-42909
05/07/2024, 7:39 PMmypy.extra_type_stubs
? I have them in the requirements, and they seem to be installed (though, since the output is truncated, can't be 100% sure), but it doesn't seem to be working. I feel I'm missing something stupid here...tall-battery-32825
05/07/2024, 10:05 PMg py $ tree 3rdparty/
3rdparty/
└── python
├── BUILD
├── default.lock
├── mypy.lock
├── mypy-requirements.txt
My mypy-requirements.txt file contains the following:
mypy~=1.9.0
sqlalchemy[mypy]==1.4.41
...
I have a requirements.txt file that contains the sqlalchemy dependency as well:
sqlalchemy[asyncio]~=1.4.41
...
which is used to generate the default.lock lockfile.
Basically I had to include the requirement in both mypy-requirements.txt and requirements.txt.ancient-france-42909
05/08/2024, 12:01 PM--python-executable
that points to the virtual env created for the actual code it's testing, not the one mypy is running in (i.e. the one with all the stubs).ancient-france-42909
05/08/2024, 12:02 PMancient-france-42909
05/08/2024, 12:06 PMancient-france-42909
05/08/2024, 12:26 PMextra_type_stubs
, the requirements_venv.pex
had both. In 2.20, it doesn't have the mypy stuff.