unstale

pypi / attrs

attrs

What changed in attrs 26, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.

3 new APIs and options1 behavior and defaults2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.0 on npm

attrs 266 changes

New APIs and options 3

  • Adds a flag indicating whether an attribute alias was auto-generated or explicitly set by the user.

    26.1.0release notes

  • attrs.fields() now accepts attrs instances as well as attrs classes.

    26.1.0release notes

  • Frozen classes can now use attrs.setters.NO_OP for on_setattr in addition to None.

    26.1.0release notes

Behavior and default changes 1

  • The disabled validator context manager can now be nested.

    26.1.0release notes

Fixes and other changes 2

  • Type annotations no longer reject tuples containing more than one validator.

    26.1.0release notes

  • Field aliases are resolved before field_transformer runs, so transformers receive fully populated Attribute objects with usable alias values.

    26.1.0release notes