NumPy 2.2.2 Release Notes#

NumPy 2.2.2 is a patch release that fixes bugs found after the 2.2.1 release.The number of typing fixes/updates is notable. This release supports Pythonversions 3.10-3.13.

Contributors#

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

  • Alicia Boya García +

  • Charles Harris

  • Joren Hammudoglu

  • Kai Germaschewski +

  • Nathan Goldbaum

  • PTUsumit +

  • Rohit Goswami

  • Sebastian Berg

Pull requests merged#

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

  • #28050: MAINT: Prepare 2.2.x for further development

  • #28055: TYP: fixvoid arrays not acceptingstr keys in__setitem__

  • #28066: TYP: fix unnecessarily broadinteger binop return types (#28065)

  • #28112: TYP: Betterndarray binop return types forfloat64 &…

  • #28113: TYP: Return the correctbool fromissubdtype

  • #28114: TYP: Always acceptdate[time] in thedatetime64 constructor

  • #28120: BUG: Fix auxdata initialization in ufunc slow path

  • #28131: BUG: move reduction initialization to ufunc initialization

  • #28132: TYP: Fixinterp to accept and return scalars

  • #28137: BUG: call PyType_Ready in f2py to avoid data races

  • #28145: BUG: remove unnecessary call to PyArray_UpdateFlags

  • #28160: BUG: Avoid data race in PyArray_CheckFromAny_int

  • #28175: BUG: Fix f2py directives and –lower casing

  • #28176: TYP: Fix overlapping overloads issue in 2->1 ufuncs

  • #28177: TYP: preserve shape-type in ndarray.astype()

  • #28178: TYP: Fix missing and spurious top-level exports