plain-carpet-73994
05/10/2021, 11:51 PMhundreds-father-404
05/11/2021, 12:03 AMmodule_mapping
because pants thinks the module right now is `numpy_stubs`: https://www.pantsbuild.org/docs/python-third-party-dependencies#inline-requirements
But then you would have a problem, both the requirements numpy
and numpy_stubs
would export the same module name of numpy
, and it would now be ambiguous when we have imports of numpy
which you want to use.
We do the safe thing of defaulting to neither when there is ambiguity, which is necessary because it would be an error for example if you had numpy==1.2
and numpy==1.4
in your project, Pants inferred a dep on both, and we tried installing both which is illegal