Skip to content

v4.4.1

Latest

Choose a tag to compare

@Pierre-Sassoulas Pierre-Sassoulas released this 02 Dec 08:27
· 9 commits to main since this release

What's new in astroid 4.4.1?

Release date: 2026-12-02

Bug Fixes

  • Fix a memory leak in the narrowing of values after guard statements. Every tree
    it saw was kept alive until the end of the run, including the many short-lived
    trees that brains build on each inference. Memory use when linting astropy's
    test_quantity.py went from 1.6 GB to 250 MB.

    Refs #3387

Performance Improvements

  • Reduce the memory and time used to infer code that uses numpy. The numpy brain
    built its ndarray class from source on each inference, and several nodes kept
    caches that gave them a __dict__ of their own. Linting astropy's
    test_quantity.py went from 61.5 s and 267 MB to 5.1 s and 165 MB.

    Refs #3499