Skip to content

4.3.1

Latest

Choose a tag to compare

@Pierre-Sassoulas Pierre-Sassoulas released this 17 Aug 08:21
· 10 commits to main since this release
4ea15d4

What's New in astroid 4.3.1?

Release date: 2026-08-17

  • Fix inference of the attributes of a namedtuple created with
    rename=True. The renamed fields were applied to _fields and to the
    class body, but the instance kept the field names as written, so an instance
    of namedtuple("Tuple", "abc def", rename=True) was inferred as having a
    def attribute instead of _1, and duplicate field names collapsed into
    a single attribute instead of being renamed.

    Closes #242