strong-answer-14518
02/28/2023, 9:24 AMextra_type_stubs
in the pants.toml
did the trick, and it’s worth pinning the versions of you extra_types_stubs in the config.
I’m surprised though, as it looks like the stubs specified in the different dependencies universes would never be used by mypy
: how to specify different stubs version for different package versions? For example yesterday, a new version of the pandas-stubs has been released and caused errors to appear (most likely because of the pre-release of pandas==2.0.0rc0
). Let’s image I want to have 2 resolves with different pandas versions for which the stubs are not compatible, how shall I proceed?