Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 21, 2023

Note: This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Type Update Change Age Confidence
highlight.js (source) minor 11.8.011.11.1 age confidence
ipython dev-dependencies major <8.14.1<9.9.1 age confidence
jupyter dev-dependencies minor 1.0.01.1.1 age confidence
matplotlib dependencies minor 3.7.13.10.8 age confidence
numba dependencies minor ^0.57.0^0.63.0 age confidence
numpy (changelog) dependencies major ^1.19.0^2.0.0 age confidence
pdoc3 (source) dev-dependencies minor ^0.10.0^0.11.0 age confidence
pytest (changelog) dev-dependencies major ^7.0.0^9.0.0 age confidence
python dependencies minor >=3.8,<3.12>=3.14,<3.15 age confidence
pyyaml (source) dependencies patch 6.06.0.3 age confidence
scikit-image dependencies minor ^0.21.0^0.26.0 age confidence
tensorflow dependencies minor 2.13.0rc12.20.0 age confidence
torchvision dependencies minor ^0.15.2^0.24.0 age confidence

Release Notes

highlightjs/highlight.js (highlight.js)

v11.11.1

Compare Source

  • Fixes regression with Rust grammar.

v11.11.0

Compare Source

CAVEATS / POTENTIALLY BREAKING CHANGES

  • Nothing yet.

Core Grammars:

  • fix(rust) - adds emoji support in single quote strings [joshgoebel][]
  • fix(apache) - support line continuation via \ Josh Goebel
  • fix(makefile) - allow strings inside $() expressions aneesh98
  • enh(arcade) updated to ArcGIS Arcade version 1.29 Kristian Ekenes
  • enh(css) add all properties listed on MDN (96 additions including anchor-name, aspect-ratio, backdrop-filter, container, margin-trim, place-content, scroll-timeline, ...) BaliBalo
  • enh(excel) add built-in functions for Excel 365 release to 2024 Danny Winrow
  • enh(erlang) OTP 27 triple-quoted strings nixxquality
  • enh(erlang) OTP 27 doc attribute nixxquality
  • enh(erlang) OTP 27 Sigil type nixxquality
  • enh(erlang) OTP25/27 maybe statement nixxquality
  • enh(dart) Support digit-separators in number literals [Sam Rawlins][]
  • enh(csharp) add Contextual keywords file, args, dynamic, record, required and scoped Alvin Joy
  • enh(lua) add 'pluto' as an alias Sainan
  • enh(bash) add reserved keywords time and coproc Álvaro Mondéjar
  • enh(nix) update keywords [h7x4][]
  • enh(nix) support paths [h7x4][]
  • enh(nix) support lookup paths [h7x4][]
  • enh(nix) support operators [h7x4][]
  • enh(nix) support REPL keywords [h7x4][]
  • enh(nix) support markdown comments [h7x4][]
  • enh(nix) support basic function params [h7x4][]
  • enh(nix) better parsing of attrsets [h7x4][]
  • fix(c) - Fixed hex numbers with decimals Dxuian
  • fix(typescript) - Fixedoptional property not highlighted correctly Dxuian
  • fix(ruby) - fix |= operator false positives (as block arguments) Aboobacker MK
  • enh(gcode) rewrote language for modern gcode support Barthélémy Bonhomme
  • fix(sql) - Fixed sql primary key and foreign key spacing issue Dxuian
  • fix(cpp) added flat_set and flat_map as a part of cpp 23 version Lavan
  • fix(yaml) - Fixed special chars in yaml Dxuian
  • fix(basic) - Fixed closing quotation marks not required for a PRINT statement Somya
  • fix(nix) remove add builtin [h7x4][]
  • fix(nix) mark or as builtin instead of literal [h7x4][]
  • fix(nix) handle ''' string escapes [h7x4][]
  • fix(nix) handle backslash string escapes [h7x4][]
  • fix(nix) don't mix escapes for " and '' strings [h7x4][]
  • fix(swift) - Fixed syntax highlighting for class func/var declarations guuido
  • fix(yaml) - Fixed wrong escaping behavior in single quoted strings guuido
  • enh(nim) - Add concept and defer to list of Nim keywords Jake Leahy
  • fix(cpp) - Exclude keywords from highlighting as function calls Eisenwave

New Grammars:

  • added 3rd party TTCN-3 grammar to SUPPORTED_LANGUAGES Osmocom
  • added 3rd party Odin grammar to SUPPORTED_LANGUAGES clsource
  • added 3rd party Liquid grammar to SUPPORTED_LANGUAGES Laurel King

Developer Tools:

  • Nothing yet.

Themes:

Improvements:

  • Resolve the memory leak problem when creating multiple Highlight.js instances Imken

CONTRIBUTORS

v11.10.0

Compare Source

CAVEATS / POTENTIALLY BREAKING CHANGES

  • Drops support for Node 16.x, which is no longer supported by Node.js.

Core Grammars:

  • enh(typescript) add support for satisfies operator Kisaragi Hiu
  • enc(c) added more C23 keywords Melkor-1
  • enh(json) added jsonc as an alias BackupMiles
  • enh(gml) updated to latest language version (GML v2024.2) gnysek
  • enh(c) added more C23 keywords and preprcoessor directives Eisenwave
  • enh(js/ts) support namespaced tagged template strings Aral Balkan
  • enh(perl) fix false-positive variable match at end of string Josh Goebel
  • fix(cpp) not all kinds of number literals are highlighted correctly Lê Duy Quang
  • fix(css) fix overly greedy pseudo class matching Bradley Mackey
  • enh(arcade) updated to ArcGIS Arcade version 1.24 Kristian Ekenes
  • fix(typescript): params types Mohamed Ali
  • fix(rust) fix escaped double quotes in string Mohamed Ali
  • fix(rust) fix for r# raw identifier not being highlighted correctly. JaeBaek Lee
  • enh(rust) Adding union to be recognized as a keyword in Rust. JaeBaek Lee
  • fix(yaml) fix for yaml with keys having brackets highlighted incorrectly Aneesh Kulkarni
  • fix(csharp) add raw string highlighting for C# 11. Tara
  • fix(bash) fix # within token being detected as the start of a comment Felix Uhl
  • fix(python) fix or conflicts with string highlighting Mohamed Ali
  • enh(python) adds a scope to the self variable [Lee Falin][]
  • enh(delphi) allow digits to be omitted for hex and binary literals Jonah Jeleniewski
  • enh(delphi) add support for digit separators Jonah Jeleniewski
  • enh(delphi) add support for character strings with non-decimal numerics Jonah Jeleniewski
  • fix(javascript) incorrect function name highlighting CY Fung
  • fix(1c) fix escaped symbols "+-;():=,[]" literals Vitaly Barilko
  • fix(swift) correctly highlight generics and conformances in type definitions Bradley Mackey
  • enh(swift) add package keyword Bradley Mackey
  • fix(swift) ensure keyword attributes highlight correctly Bradley Mackey
  • fix(types) fix interface LanguageDetail > keywords Patrick Chiu
  • enh(java) add goto to be recognized as a keyword in Java Alvin Joy
  • enh(bash) add keyword sudo Alvin Joy
  • fix(haxe) captures new keyword without capturing it within variables/class names Cameron Taylor
  • fix(go) fix go number literals to accept _ separators, add hex p exponents Lisa Ugray
  • enh(markdown) add entity support [David Schach][] TaraLei
  • enh(css) add justify-items and justify-self attributes Vasily Polovnyov
  • enh(css) add accent-color, appearance, color-scheme, rotate, scale and translate attributes Carl Räfting
  • fix(fortran) fixes parsing of keywords delimited by dots Julien Bloino
  • enh(css) add select, option, optgroup, picture and source to list of known tags Vasily Polovnyov
  • enh(css) add inset, inset-*, border-start-*-radius and border-end-*-radius attributes Vasily Polovnyov
  • enh(css) add text-decoration-skip-ink, text-decoration-thickness and text-underline-offset attributes Vasily Polovnyov
  • enh(java) add when to be recognized as a keyword in Java Chiel van de Steeg

New Grammars:

  • added 3rd party CODEOWNERS grammar to SUPPORTED_LANGUAGES nataliia-radina
  • added 3rd party Luau grammar to SUPPORTED_LANGUAGES Robloxian Demo
  • added 3rd party ReScript grammar to SUPPORTED_LANGUAGES Paul Tsnobiladzé
  • added 3rd party Zig grammar to SUPPORTED_LANGUAGES [Hyou BunKen][]
  • added 3rd party WGSL grammar to SUPPORTED_LANGUAGES Arman Uguray
  • added 3rd party Unison grammar to SUPPORTED_LANGUAGES Rúnar Bjarnason
  • added 3rd party Phix grammar to SUPPORTED_LANGUAGES PeteLomax
  • added 3rd party Mirth grammar to SUPPORTED_LANGUAGES Sierra
  • added 3rd party JSONata grammar to SUPPORTED_LANGUAGES Vlad Dimov

Developer Tool:

  • enh(tools): order CSS options picklist [David Schach][]
  • enh(tools): remove duplicate CSS options [David Schach][]
  • (typescript): deprecate old highlight API [Misha Kaletsky][]

Themes:

  • Added 1c-light theme a like in the IDE 1C:Enterprise 8 (for 1c) Vitaly Barilko

v11.9.0

Compare Source

CAVEATS / POTENTIALLY BREAKING CHANGES

  • Drops support for Node 14.x, which is no longer supported by Node.js.
  • In the node build styles/*.css files now ship un-minified
    with minified counterparts as: styles/*.min.css mvorisek
    (this makes things consistent with our cdn builds)

Parser:

  • (enh) prevent re-highlighting of an element [joshgoebel][]
  • (chore) Remove discontinued badges from README Bradley Mackey
  • (chore) Fix build size report Bradley Mackey

New Grammars:

  • added 3rd party Iptables grammar to SUPPORTED_LANGUAGES Checconio
  • added 3rd party x86asmatt grammar to SUPPORTED_LANGUAGES gondow
  • added 3rd party riscv64 grammar to SUPPORTED_LANGUAGES aana-h2
  • added 3rd party Ballerina grammar to SUPPORTED_LANGUAGES Yasith Deelaka

Core Grammars:

  • fix(cpp) fixed highlighter break state Md Saad Akhtar
  • fix(rust) added negative-lookahead for callable keywords if while for [Omar Hussein][]
  • enh(armasm) added x0-x30 and w0-w30 ARMv8 registers Nicholas Thompson
  • enh(haxe) added final, is, macro keywords and $ identifiers Robert Borghese
  • enh(haxe) support numeric separators and suffixes Robert Borghese
  • fix(haxe) fixed metadata arguments and support non-colon syntax Robert Borghese
  • fix(haxe) differentiate abstract declaration from keyword Robert Borghese
  • fix(bash) do not delimit a string by an escaped apostrophe [hancar][]
  • enh(swift) support macro keyword Bradley Mackey
  • enh(swift) support parameter pack keywords Bradley Mackey
  • enh(swift) regex literal support Bradley Mackey
  • enh(swift) @unchecked and @Sendable support Bradley Mackey
  • enh(scala) add using directives support //> using foo bar [Jamie Thompson][]
  • fix(scala) fixed comments in constructor arguments not being properly highlighted Isaac Nonato
  • enh(swift) ownership modifiers support Bradley Mackey
  • enh(nsis) Add !assert compiler flag [idleberg][]
  • fix(haskell) do not treat double dashes inside infix operators as comments [Zlondrej][]
  • enh(rust) added eprintln! macro qoheniac
  • enh(leaf) update syntax to 4.0 Samuel Bishop
  • fix(reasonml) simplify syntax and align it with ocaml jchavarri
  • fix(swift) warn_unqualified_access is an attribute Bradley Mackey
  • enh(swift) macro attributes are highlighted as keywords Bradley Mackey
  • enh(stan) updated for version 2.33 (#​3859) Brian Ward
  • enh(llvm) match additional types wtz
  • fix(css) added '_' css variable detection Md Saad Akhtar
  • enh(groovy) add record and var as keywords Guillaume Laforge

Developer Tool:

ipython/ipython (ipython)

v9.9.0

Compare Source

v9.8.0

Compare Source

v9.7.0

Compare Source

v9.6.0

Compare Source

v9.5.0

Compare Source

v9.4.0

Compare Source

v9.3.0

Compare Source

v9.2.0

Compare Source

v9.1.0

Compare Source

v9.0.2

Compare Source

v9.0.1

Compare Source

v9.0.0

Compare Source

v8.38.0

Compare Source

v8.37.0

Compare Source

v8.36.0

Compare Source

v8.35.0

Compare Source

v8.34.0

Compare Source

v8.33.0

Compare Source

v8.32.0

Compare Source

v8.31.0

Compare Source

v8.30.0

Compare Source

v8.29.0

Compare Source

v8.28.0

Compare Source

v8.27.0

Compare Source

v8.26.0

Compare Source

v8.25.0

Compare Source

v8.24.0

Compare Source

v8.23.0

Compare Source

v8.22.2

Compare Source

v8.22.1

Compare Source

v8.22.0

Compare Source

v8.21.0

Compare Source

v8.20.0

Compare Source

v8.19.0

Compare Source

v8.18.1

Compare Source

v8.18.0

Compare Source

v8.17.2

Compare Source

v8.17.1

Compare Source

v8.17.0

Compare Source

v8.16.1

Compare Source

v8.16.0

Compare Source

v8.15.0

Compare Source

v8.14.0

Compare Source

v8.13.2

Compare Source

v8.13.1

Compare Source

v8.13.0

Compare Source

v8.12.3

Compare Source

matplotlib/matplotlib (matplotlib)

v3.10.8: REL: v3.10.8

Compare Source

This is a bugfix release in the 3.10.x series.

The primary highlights of this release are:

  • Properly allow freethreaded mode in the MacOS backend
  • Better error handling for MacOS backend

v3.10.7: REL: v3.10.7

Compare Source

This is the latest bugfix release in the 3.10.x series.

The most important update in this release is that the minimum version
of pyparsing has been updated to version 3.0.

v3.10.6: REL: v3.10.6

Compare Source

This is a bugfix release in the 3.10.x series.

Highlights from this release include:

- Fix regression of hi-dpi support for Qt
- Fix race condition in TexManager.make_dvi & make_png
- Various documentation and other bugfixes

v3.10.5: REL: v3.10.5

Compare Source

This is the fourth bugfix release of the 3.10.x series.

Included in this release is distributed wheels for Python 3.14 (including freethreaded) and Windows ARM.

There are also several smaller bugfixes.

v3.10.3: REL: v3.10.3

Compare Source

This is the third bugfix release of the 3.10.x series

v3.10.1: REL: v3.10.1

Compare Source

This is the first bugfix release of the 3.10.x series.

This release contains several bug-fixes and adjustments:

  • Respect array alpha with interpolation_stage='rgba' in _Imagebase::_make_image
  • Remove md5 usage to prevent issues on FIPS enabled systems
  • Fix pyplot.matshow figure handling
  • Fix modifying Axes' position also alters the original Bbox object used for initialization
  • Fix title position for polar plots
  • Add version gate to GTK4 calls when necessary
  • Raise warning if both c and facecolors are used in scatter plot

As well as several documentation improvements and corrections.

v3.10.0: REL: v3.10.0

Compare Source

Highlights of this release include:

- Preliminary support for free-threaded CPython 3.13
- New more-accessible color cycle
- Dark-mode diverging colormaps
- Exception handling control
- InsetIndicator artist
- FillBetweenPolyCollection
- Fill between 3D lines
- Data in 3D plots can now be dynamically clipped to the axes view limits
- Rotating 3d plots with the mouse
- Increased Figure limits with Agg renderer
- Subfigures no longer provisional
- Subfigures are now added in row-major order

v3.9.4: REL: 3.9.4

Compare Source

This is the fourth bugfix release of the 3.9.x series.

This release contains two bug-fixes:

  • Fix toolbar icons in GTK backend
  • Fix Poly3DCollection initialization with list of lists

v3.9.3: REL: 3.9.3

Compare Source

This is the third bugfix release of the 3.9.x series.

This release contains several bug-fixes and adjustments:

  • Fix axline with extremely small slopes
  • Fix axline with non-linear axis scales
  • Fix minimumSizeHint with Qt backend
  • Fix config directory usage when it's behind a symlink
  • Fix draggable legend when blitting is enabled
  • Fix high CPU utilization in the macosx backend
  • Fix multiple hatch edgecolors passed to contourf
  • Improve compatibility with pytest 8.2.0

v3.9.2: REL: 3.9.2

Compare Source

This is the second bugfix release of the 3.9.x series.

This release contains several bug-fixes and adjustments:

  • Be more resilient to I/O failures when writing font cache
  • Fix nondeterministic behavior with subplot spacing and constrained layout
  • Fix sticky edge tolerance relative to data range
  • Improve formatting of image values in cases of singular norms

Windows wheels now bundle the MSVC runtime DLL statically to avoid inconsistencies with other wheels and random crashes depending on import order.

v3.9.1: REL: 3.9.1

Compare Source

This is the first bugfix release of the 3.9.x series.

This release contains several bug-fixes and adjustments:

  • Add GitHub artifact attestations for sdist and wheels
  • Re-add matplotlib.cm.get_cmap; note this function will still be removed at a later date
  • Allow duplicate backend entry points
  • Fix Axes autoscaling of thin bars at large locations
  • Fix Axes autoscaling with axhspan / axvspan
  • Fix Axes3D autoscaling of Line3DCollection / Poly3DCollection
  • Fix Axes3D mouse interactivity with non-default roll angle
  • Fix box aspect ratios in Axes3D with alternate vertical axis
  • Fix case handling of backends specified as module://...
  • Fix crash with TkAgg on Windows with tk.window_focus: True
  • Fix interactive update of SubFigures
  • Fix interactivity when using the IPython console
  • Fix pickling of AxesWidgets and SubFigures
  • Fix scaling on GTK3Cairo / GTK4Cairo backends
  • Fix text wrapping within SubFigures
  • Promote mpltype Sphinx role to a public extension; note this is only intended for development reasons

v3.9.0: REL: 3.9.0

Compare Source

Highlights of this release include:

  • Plotting and Annotation improvements
    • Axes.inset_axes is no longer experimental
    • Legend support for Boxplot
    • Percent sign in pie labels auto-escaped with usetex=True
    • hatch parameter for stackplot
    • Add option to plot only one half of violin plot
    • axhline and axhspan on polar axes
    • Subplot titles can now be automatically aligned
    • axisartist can now be used together with standard Formatters
    • Toggle minorticks on Axis
    • StrMethodFormatter now respects axes.unicode_minus
  • Figure, Axes, and Legend Layout
    • Subfigures now have controllable zorders
    • Getters for xmargin, ymargin and zmargin
  • Mathtext improvements
    • mathtext documentation improvements
    • mathtext spacing corrections
  • Widget Improvements
    • Check and Radio Button widgets support clearing
  • 3D plotting improvements
    • Setting 3D axis limits now set the limits exactly
  • Other improvements
    • New BackendRegistry for plotting backends
    • Add widths, heights and angles setter to EllipseCollection
    • image.interpolation_stage rcParam
    • Arrow patch position is now modifiable
    • NonUniformImage now has mouseover support

v3.8.4: REL: v3.8.4

Compare Source

This is the fourth micro release of the 3.8 series.

Highlights of the 3.8.4 release include:

  • Enable building against numpy 2.0; released wheels are built against numpy 2
  • macosx: Clean up single-shot timers correctly
  • Add a draw during show for macos backend
  • Fix color sequence data for Set2 and Set3
  • gtk: Ensure pending draws are done before GTK draw
  • Update "Created with" url in hand.svg
  • Avoid modifying user input to Axes.bar
  • fix quiver3d incorrect arrow colors

v3.8.3: REL: v3.8.3

Compare Source

This is the third micro release of the 3.8 series.

Highlights of the 3.8.3 release include:

  • Improvements to the MacOS backend
    • Fix hanging on plt.pause
    • Fix warnings about "Secure coding is not enabled for restorable state"
  • Fix crash at exit for PGF backend

v3.8.2: REL: v3.8.2

Compare Source

REL: v3.8.2

This is the second bugfix release of the 3.8 series.

Highlights of this release include:

  • Fix a segfault in the MacOS backend when running on Python 3.12
  • Fix Contour labeling manual positions selecting incorrect contours.
  • Various documentation improvements

v3.8.1: REL: v3.8.1

Compare Source

This is the first bugfix release of the 3.8.x series.

This release contains several bug fixes and adjustments:

  • Bump setuptools required version because of setuptools_scm v8
  • Update find_nearest_contour and revert contour deprecations
  • allsegs and allkinds return individual segments
  • Restore default behavior of hexbin mincnt with C provided
  • Try/except import of Axes3D
  • Ensure valid path mangling for ContourLabeler
  • BLD: Remove development dependencies from sdists
  • FIX 2-tuple of colors in to_rgba_array
  • Fix issue with non-string labels and legend
  • Fix issue with locale comma when not using math text
  • Various type hinting improvements
  • Various documentation improvements
  • Improvements to the MacOS backend

v3.8.0: REL: v3.8.0

Compare Source

REL: v3.8.0

Highlights of this release include:

  • Type hints for most public APIs
  • Many improvements to Mathtext
    • Addition of \boldsymbol command
    • Additional sizable delimiters
    • Documentation improvements
    • \substack command
    • \middle delimitier
    • \mathbfit for bold italic text
  • 3D plotting improvements
    • Specify tick/axis label positions
    • Improved text for coordinates in interactive sessions
    • Ability to share view angles
  • New plotting method ecdf (empirical cumulative distribution function)

v3.7.5: REL: v3.7.5

Compare Source

This is the fifth bugfix release of the 3.7.x series.

This release contains two bug-fixes:

  • Fix hanging on plt.pause on the MacOS backend
  • Fix crash on exit when using the PGF backend on Windows

v3.7.4: REL: v3.7.4

Compare Source

This is the fourth bugfix release of the 3.7.x series.

This release contains one bug-fix:

  • Fix a segmentation fault when resizing on Python 3.12 and macOS 14

v3.7.3: REL: v3.7.3

Compare Source

This is the third bugfix release of the 3.7.x series.

This release contains several bug-fixes and adjustments:

  • Add Python 3.12 wheels
  • Update the license for the bundled colorbrewer colormap data
  • Fix Cairo backend when using cairocffi
  • Fix axes_grid1 inset axes with bbox_inches=tight
  • Fix bugs in Path3DCollection / Poly3DCollection constructors
  • Fix setting array labelcolor on Tick
  • Improve compatibility with latest NumPy
  • Stop warning when calling tight_layout multiple times

v3.7.2: REL: v3.7.2

Compare Source

This is the second bugfix release of the 3.7.x series.

This release contains several bug-fixes and adjustments:

  • Avoid modifying input masks in pcolor/pcolormesh
  • Fix 3D set_aspect error cases
  • Fix IPython's %pylab mode detection
  • Fix Figure.get_constrained_layout_pads()
  • Fix Legend.set_draggable() with update="bbox"
  • Fix TransformedBbox.{,full_}contains
  • Fix clipping of bar_label text
  • Fix colorbar size when saving with explicit bbox_inches
  • Fix errors when an input is entirely NaN
  • Fix leaks of exception tracebacks and LayoutGrid objects
  • Fix non-interpolated imshow in PDF export
  • Fix palettized image optimization in PDF export
  • Fix pgf tests with TeXLive 2022
  • Fix removal of Axes that contain widgets that are grabbing the mouse
  • Fix removal of draggable artists
  • Fix subslice optimization for long, fully nan lines
  • Fix tight layout if Figure has an existing layout manager
  • Fix window extent of AnnotationBbox before first draw
  • Fix wspace and hspace in subfigures
  • Improve Qt compatibility
  • Improve compatibility with Python 3.12
  • Prevent under the hood downcasting of values in xcorr
  • Remove some NumPy function overrides from pylab
  • Remove warning with symlog scales on mouseover
numpy/numpy (numpy)

v2.4.0: 2.4.0 (Dec 20, 2025)

Compare Source

NumPy 2.4.0 Release Notes

The NumPy 2.4.0 release continues the work to improve free threaded Python
support, user dtypes implementation, and annotations. There are many expired
deprecations and bug fixes as well.

This release supports Python versions 3.11-3.14

Highlights

Apart from annotations and same_value kwarg, the 2.4 highlights are mostly
of interest to downstream developers. They should help in implementing new user
dtypes.

  • Many annotation improvements. In particular, runtime signature introspection.
  • New casting kwarg 'same_value' for casting by value.
  • New PyUFunc_AddLoopsFromSpec function that can be used to add user sort
    loops using the ArrayMethod API.
  • New __numpy_dtype__ protocol.
Deprecations
Setting the strides attribute is deprecated

Setting the strides attribute is now deprecated since mutating
an array is unsafe if an array is shared, especially by multiple
threads. As an alternative, you can create a new view (no copy) via:

  • np.lib.stride_tricks.strided_window_view if applicable,
  • np.lib.stride_tricks.as_strided for the general case,
  • or the np.ndarray constructor (buffer is the original array) for a
    light-weight version.

(gh-28925)

Positional out argument to np.maximum, np.minimum is deprecated

Passing the output array out positionally to numpy.maximum and
numpy.minimum is deprecated. For example, np.maximum(a, b, c) will emit
a deprecation warning, since c is treated as the output buffer rather than
a third input.

Always pass the output with the keyword form, e.g. np.maximum(a, b, out=c).
This makes intent clear and simplifies type annotations.

(gh-29052)

align= must be passed as boolean to np.dtype()

When creating a new dtype a VisibleDeprecationWarning will be given if
align= is not a boolean. This is mainly to prevent accidentally passing a
subarray align flag where it has no effect, such as np.dtype("f8", 3)
instead of np.dtype(("f8", 3)). We strongly suggest to always pass
align= as a keyword argument.

(gh-29301)

Assertion and warning control utilities are deprecated

np.testing.assert_warns and np.testing.suppress_warnings are
deprecated. Use warnings.catch_warnings, warnings.filterwarnings,
pytest.warns, or pytest.filterwarnings instead.

(gh-29550)

np.fix is pending deprecation

The numpy.fix function will be deprecated in a future release. It is
recommended to use numpy.trunc instead, as it provides the same
functionality of truncating decimal values to their integer parts. Static type
checkers might already report a warning for the use of numpy.fix.

(gh-30168)

in-place modification of ndarray.shape is pending deprecation

Setting the ndarray.shape attribute directly will be deprecated in a future
release. Instead of modifying the shape in place, it is recommended to use the
numpy.reshape function. Static type checkers might already report a
warning for assignments to ndarray.shape.

(gh-30282)

Deprecation of numpy.lib.user_array.container

The numpy.lib.user_array.container class is deprecated and will be removed
in a future version.

(gh-30284)

Expired deprecations
Removed deprecated MachAr runtime discovery mechanism.

(gh-29836)

Raise TypeError on attempt to convert array with ndim > 0 to scalar

Conversion of an array with ndim > 0 to a scalar was deprecated in NumPy
1.25. Now, attempting to do so raises TypeError. Ensure you extract a
single element from your array before performing this operation.

(gh-29841)

Removed numpy.linalg.linalg and numpy.fft.helper

The following were deprecated in NumPy 2.0 and have been moved to private
modules:

  • numpy.linalg.linalg
    Use numpy.linalg instead.
  • numpy.fft.helper
    Use numpy.fft instead.

(gh-29909)

Removed interpolation parameter from quantile and percentile functions

The interpolation parameter was deprecated in NumPy 1.22.0 and has been
removed from the following functions:

  • numpy.percentile
  • numpy.nanpercentile
  • numpy.quantile
  • numpy.nanquantile

Use the method parameter instead.

(gh-29973)

Removed numpy.in1d

numpy.in1d has been deprecated since NumPy 2.0 and is now removed in favor of numpy.isin.

(gh-29978)

Removed numpy.ndindex.ndincr()

The ndindex.ndincr() method has been deprecated since NumPy 1.20 and is now
removed; use next(ndindex) instead.

(gh-29980)

Removed fix_imports parameter from numpy.save

The fix_imports parameter was deprecated in NumPy 2.1.0 and is now removed.
This flag has been ignored since NumPy 1.17 and was only needed to support
loading files in Python 2 that were written in Python 3.

(gh-29984)

Removal of four undocumented ndarray.ctypes methods

Four undocumented methods of the ndarray.ctypes object have been removed:

  • _ctypes.get_data() (use _ctypes.data instead)
  • _ctypes.get_shape() (use _ctypes.shape instead)
  • _ctypes.get_strides() (use _ctypes.strides instead)
  • _ctypes.get_as_parameter() (use _ctypes._as_parameter_ instead)

These methods have been deprecated since NumPy 1.21.

(gh-29986)

Removed newshape parameter from numpy.reshape

The newshape parameter was deprecated in NumPy 2.1.0 and has been
removed from numpy.reshape. Pass it positionally or use shape=
on newer NumPy versions.

(gh-29994)

Removal of deprecated functions and arguments

The following long-deprecated APIs have been removed:

  • numpy.trapz --- deprecated since NumPy 2.0 (2023-08-18). Use numpy.trapezoid or
    scipy.integrate functions instead.
  • disp function --- deprecated from 2.0 release and no longer functional. Use
    your own printing function instead.
  • bias and ddof arguments in numpy.corrcoef --- these had no effect
    since NumPy 1.10.

(gh-29997)

Removed delimitor parameter from numpy.ma.mrecords.fromtextfile()

The delimitor parameter was deprecated in NumPy 1.22.0 and has been
removed from numpy.ma.mrecords.fromtextfile(). Use delimiter instead.

(gh-30021)

numpy.array2string and numpy.sum deprecations finalized

The following long-deprecated APIs have been removed or converted to errors:

  • The style parameter has been removed from numpy.array2string.
    This argument had no effect since Numpy 1.14.0. Any arguments following
    it, such as formatter have now been made keyword-only.
  • Calling np.sum(generator) directly on a generator object now raises a
    TypeError. This behavior was deprecated in NumPy 1.15.0. Use
    np.sum(np.fromiter(generator)) or the python sum builtin instead.

(gh-30068)

Compatibility notes
  • NumPy's C extension modules have begun to use multi-phase initialisation, as
    defined by PEP 489. As part of this, a new explicit check has been added that
    each such module is only imported once per Python process. This comes with
    the side-effect that deleting numpy from sys.modules and re-importing
    it will now fail with an ImportError. This has always been unsafe, with
    unexpected side-effects, though did not previously raise an error.

    (gh-29030)

  • numpy.round now always returns a copy. Previously, it returned a view
    for integer inputs for decimals >= 0 and a copy in all other cases.
    This change brings round in line with ceil, floor and trunc.

    (gh-29137)

  • Type-checkers will no longer accept calls to numpy.arange with
    start as a keyword argument. This was done for compatibility with
    the Array API standard. At runtime it is still possible to use
    numpy.arange with start as a keyword argument.

    (gh-30147)

  • The Macro NPY_ALIGNMENT_REQUIRED has been removed The macro was defined in
    the npy_cpu.h file, so might be regarded as semi public. As it turns out,
    with modern compilers and hardware it is almost always the case that
    alignment is required, so numpy no longer uses the macro. It is unlikely
    anyone uses it, but you might want to compile with the -Wundef flag or
    equivalent to be sure.

    (gh-29094)

C API changes
The NPY_SORTKIND enum has been enhanced with new variables

This is of interest if you are using PyArray_Sort or PyArray_ArgSort.
We have changed the semantics of the old names in the NPY_SORTKIND enum and
added new ones. The changes are backward compatible, and no recompilation is
needed. The new names of interest are:

  • NPY_SORT_DEFAULT -- default sort (same value as NPY_QUICKSORT)
  • NPY_SORT_STABLE -- the sort must be stable (same value as NPY_MERGESORT)
  • NPY_SORT_DESCENDING -- the sort must be descending

The semantic change is that NPY_HEAPSORT is mapped to NPY_QUICKSORT when used.
Note that NPY_SORT_DESCENDING is not yet implemented.

(gh-29642)

New NPY_DT_get_constant slot for DType constant retrieval

A new slot NPY_DT_get_constant has been added to the DType API, allowing
dtype implementations to provide constant values such as machine limits and
special values. The slot function has the signature:

int get_constant(PyArray_Descr *descr, int constant_id, void *ptr)

It returns 1 on success, 0 if the constant is not available, or -1 on error.
The function is always called with the GIL held and may write to unaligned memory.

Integer constants (marked with the 1 << 16 bit) return npy_intp values,
while floating-point constants return values of the dtype's native type.

Implementing this can be used by user DTypes to provide numpy.finfo values.

(gh-29836)

A new PyUFunc_AddLoopsFromSpecs convenience function has been added to the C API.

This function allows adding multiple ufunc loops from their specs in one call
using a NULL-terminated array of PyUFunc_LoopSlot structs. It allows
registering sorting and argsorting loops using the new ArrayMethod API.

(gh-29900)

New Features
  • Let np.size accept multiple axes.

    (gh-29240)

  • Extend numpy.pad to accept a dictionary for the pad_width argument.

    (gh-29273)

'same_value' for casting by value

The casting kwarg now has a 'same_value' option that checks the actual
values can be round-trip cast without changing value. Currently it is only
implemented in ndarray.astype. This will raise a ValueError if any of the
values in the array would change as a result of the cast, including rounding of
floats or overflowing of ints.

(gh-29129)

StringDType fill_value support in numpy.ma.MaskedArray

Masked arrays now accept and preserve a Python str as their fill_value
when using the variable‑width StringDType (kind 'T'), including through
slicing and views. The default is 'N/A' and may be overridden by any valid
string. This fixes issue gh‑29421
and was implemented in pull request gh‑29423.

(gh-29423)

ndmax option for numpy.array

The ndmax option is now available for numpy.array.
It explicitly limits the maximum number of dimensions created from nested sequences.

This is particularly useful when creating arrays of list-like objects with dtype=object.
By default, NumPy recurses through all nesting levels to create the highest possible
dimensional array, but this behavior may not be desired when the intent is to preserve
nested structures as objects. The ndmax parameter provides explicit control over
this recursion depth.

# Default behavior: Creates a 2D array
>>> a = np.array([[1, 2], [3, 4]], dtype=object)
>>> a
array([[1, 2],
       [3, 4]], dtype=object)
>>> a.shape
(2, 2)

# With ndmax=1: Creates a 1D array
>>> b = np.array([[1, 2], [3, 4]], dtype=object, ndmax=1)
>>> b
array([list([1, 2]), list([3, 4])], dtype=object)
>>> b.shape
(2,)

(gh-29569)

Warning emitted when using where without out

Ufuncs called with a where mask and without an out positional or kwarg will
now emit a warning. This usage tends to trip up users who expect some value in
output locations where the mask is False (the ufunc will not touch those
locations). The warning can be suppressed by using out=None.

(gh-29813)

DType sorting and argsorting supports the ArrayMethod API

User-defined dtypes can now implement custom sorting and argsorting using the
ArrayMethod API. This mechanism can be used in place of the
PyArray_ArrFuncs slots which may be deprecated in the future.

The sorting and argsorting methods are registered by passing the arraymethod
specs that implement the operations to the new PyUFunc_AddLoopsFromSpecs
function. See the ArrayMethod API documentation for details.

(gh-29900)

New __numpy_dtype__ protocol

NumPy now h


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from 57e1fcd to 46497a0 Compare July 5, 2023 22:46
@renovate renovate bot force-pushed the renovate/all branch 5 times, most recently from 45fef64 to e77879c Compare October 4, 2023 18:39
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from 67783bd to d086912 Compare October 15, 2023 17:16
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from c3e922e to 198f12f Compare November 1, 2023 01:06
@renovate renovate bot force-pushed the renovate/all branch 6 times, most recently from 6b5934a to 3dba2a6 Compare November 17, 2023 23:09
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from ed56df0 to 22094de Compare November 27, 2023 11:13
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from 89cb147 to 295872d Compare December 9, 2023 00:22
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from 9945710 to 986b595 Compare June 5, 2025 04:30
@renovate renovate bot force-pushed the renovate/all branch from 986b595 to 13627e1 Compare July 1, 2025 12:58
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from 6f9dacb to 73fc2d6 Compare August 13, 2025 18:17
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from ad8a591 to b163481 Compare August 19, 2025 18:59
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from a416706 to 58afd55 Compare September 4, 2025 17:29
@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from 1781681 to 3ef46a0 Compare September 29, 2025 12:32
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from a3410eb to 3d18610 Compare November 8, 2025 18:50
@renovate renovate bot force-pushed the renovate/all branch 3 times, most recently from 8ef8bc3 to bbb49a0 Compare November 18, 2025 11:16
@renovate renovate bot force-pushed the renovate/all branch 4 times, most recently from 29961c7 to 32444f9 Compare December 10, 2025 05:31
@renovate renovate bot force-pushed the renovate/all branch 2 times, most recently from 5a47e64 to 739e034 Compare December 20, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant