Skip to main content
`Ctrl`+`K`

# NumPy 2.1.3 Release Notes

NumPy 2.1.3 is a maintenance release that fixes bugs and regressions discovered after the 2.1.2 release.

The Python versions supported by this release are 3.10-3.13.

## Improvements

- Fixed a number of issues around promotion for string ufuncs with StringDType arguments. Mixing StringDType and the fixed-width DTypes using the string ufuncs should now generate much more uniform results.

  (gh-27636)

## Changes

- `numpy.fix` now won’t perform casting to a floating data-type for integer and boolean data-type input arrays.

  (gh-26766)

## Contributors

A total of 15 people contributed to this release. People with a “+” by their names contributed a patch for the first time.

- Abhishek Kumar +

- Austin +

- Benjamin A. Beasley +

- Charles Harris

- Christian Lorentzen

- Marcel Telka +

- Matti Picus

- Michael Davidsaver +

- Nathan Goldbaum

- Peter Hawkins

- Raghuveer Devulapalli

- Ralf Gommers

- Sebastian Berg

- dependabot[bot]

- kp2pml30 +

## Pull requests merged

A total of 21 pull requests were merged for this release.

- #27512: MAINT: prepare 2.1.x for further development

- #27537: MAINT: Bump actions/cache from 4.0.2 to 4.1.1

- #27538: MAINT: Bump pypa/cibuildwheel from 2.21.2 to 2.21.3

- #27539: MAINT: MSVC does not support #warning directive

- #27543: BUG: Fix user dtype can-cast with python scalar during promotion

- #27561: DEV: bump `python` to 3.12 in environment.yml

- #27562: BLD: update vendored Meson to 1.5.2

- #27563: BUG: weighted quantile for some zero weights (#27549)

- #27565: MAINT: Use miniforge for macos conda test.

- #27566: BUILD: satisfy gcc-13 pendantic errors

- #27569: BUG: handle possible error for PyTraceMallocTrack

- #27570: BLD: start building Windows free-threaded wheels [wheel build]

- #27571: BUILD: vendor tempita from Cython

- #27574: BUG: Fix warning “differs in levels of indirection” in npy_atomic.h…

- #27592: MAINT: Update Highway to latest

- #27593: BUG: Adjust numpy.i for SWIG 4.3 compatibility

- #27616: BUG: Fix Linux QEMU CI workflow

- #27668: BLD: Do not set __STDC_VERSION__ to zero during build

- #27669: ENH: fix wasm32 runtime type error in numpy._core

- #27672: BUG: Fix a reference count leak in npy_find_descr_for_scalar.

- #27673: BUG: fixes for StringDType/unicode promoters