Comes from scipy/scipy#20585 (comment).
It seems somehow sctypes["int"] is missing int32 in a 32-bit build of NumPy.
In 64-bit builds:
>>> from numpy._core._type_aliases import sctypes
>>> sctypes["int"]
[<class 'numpy.int8'>, <class 'numpy.int16'>, <class 'numpy.int32'>, <class 'numpy.int64'>]
>>> numpy.int32 == numpy.intc
True
In 32-bit builds:
>>> from numpy._core._type_aliases import sctypes
>>> sctypes["int"]
[<class 'numpy.int8'>, <class 'numpy.int16'>, <class 'numpy.intc'>, <class 'numpy.int64'>]
>>> numpy.intc == numpy.int32
False
Comes from scipy/scipy#20585 (comment).
It seems somehow
sctypes["int"]is missingint32in a 32-bit build of NumPy.In 64-bit builds:
In 32-bit builds: