pypi astroid 4.4.1
v4.4.1

one hour ago

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

Don't miss a new astroid release

NewReleases is sending notifications on new releases.