Repository navigation
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.pywent 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 itsndarrayclass from source on each inference, and several nodes kept
caches that gave them a__dict__of their own. Linting astropy's
test_quantity.pywent from 61.5 s and 267 MB to 5.1 s and 165 MB.Refs #3499