---
title: "attrs 26.1.0 Breaking Changes on PyPI | Since.dev"
description: "What each attrs release removed, renamed or changed: 26 breaking changes in 4 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/attrs
last_updated: 2026-12-04
---

# attrs breaking changes

attrs 26.1.0 (March 19, 2026) is its newest release with breaking changes, 3 of them. The first: Behavior changed attrs.field_transformer. Every breaking API change we have recorded in attrs on PyPI: 26 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `26.1.0`, released March 19, 2026. [Source repository](https://github.com/python-attrs/attrs)

Its 23.1.0 release drops Python 3.6. [Python end of life dates](https://since.dev/calendar/python.md).

- From [24.1.0](#v-24-1-0) to [26.1.0](#v-26-1-0): 3 breaking changes in 1 version.
- From [22.1.0](#v-22-1-0) to [26.1.0](#v-26-1-0): 16 breaking changes in 3 versions.

## attrs 26.1.0 breaking changes

attrs 26.1.0, released March 19, 2026: 3 breaking changes.

- **Behavior changed** `attrs.field_transformer`  

Transformers now receive Attribute objects with populated alias values instead of None. Code that assumed alias was None inside field_transformer must be updated; use the new Attribute.alias_is_default flag to check whether the alias was... [github.com](https://github.com/python-attrs/attrs/releases/tag/26.1.0)
- **Signature changed** `attr.fields`  

Was def fields(cls: type\[AttrsInstance\]) -> Any; now def fields(cls: type\[AttrsInstance\] | AttrsInstance) -> Any. [pypi.org](https://pypi.org/project/attrs/26.1.0/)
- **Signature changed** `attr.validators.optional`  

Was def optional(validator: \_ValidatorType\[\_T\] | list\[\_ValidatorType\[\_T\]\] | tuple\[\_ValidatorType\[\_T\]\]) -> \_ValidatorType\[\_T | None\]; now def optional(validator: \_ValidatorType\[\_T\] | list\[\_ValidatorType\[\_T\]\] | tuple\[\_ValidatorType\[\_T\]... [pypi.org](https://pypi.org/project/attrs/26.1.0/)

## attrs 24.1.0 breaking changes

attrs 24.1.0, released August 3, 2024: 4 breaking changes.

- **Removed** `attrs.__url__`  

All packaging metadata except \_\_version\_\_ and \_\_version_info\_\_ has been removed from the attr and attrs modules. Use importlib.metadata or importlib_metadata instead. [github.com](https://github.com/python-attrs/attrs/releases/tag/24.1.0)
- **Removed** `attrs.evolve`  

attrs.evolve() doesn't accept the inst argument as a keyword argument anymore. Pass it as the first positional argument instead. [github.com](https://github.com/python-attrs/attrs/releases/tag/24.1.0)
- **Removed** `attrs.validators.provides`  

attrs.validators.provides() has been removed. The removed code is available as a gist for copy and paste. [github.com](https://github.com/python-attrs/attrs/releases/tag/24.1.0)
- **Behavior changed** `__eq__`  

Generated \_\_eq\_\_ methods now compare a chain of attributes instead of tuples, so attributes equal by identity but not value, like float('nan'), may compare differently. [github.com](https://github.com/python-attrs/attrs/releases/tag/24.1.0)

## attrs 23.1.0 breaking changes

attrs 23.1.0, released April 16, 2023: 9 breaking changes.

- **Removed**  

Python 3.6 is no longer supported by new releases; pip install attrs still works on 3.6 through package metadata, but users on 3.6 stay on older versions. [github.com](https://github.com/python-attrs/attrs/releases/tag/23.1.0)
- **Removed** `attrs.__doc__`  

attrs.\_\_doc\_\_ was removed in attrs 23.1.0 [pypi.org](https://pypi.org/project/attrs/23.1.0/)
- **Behavior changed** `attrs.resolve_types`  

attrs.resolve_types() passes include_extras to typing.get_type_hints() on Python 3.9+ and does so by default, so resolved types may keep Annotated metadata. [github.com](https://github.com/python-attrs/attrs/releases/tag/23.1.0)
- **Signature changed** `attr.evolve`  

Was def evolve(inst: \_T, \*\*changes: Any) -> \_T; now def evolve(\*args, \*\*changes: Any) -> \_T. [pypi.org](https://pypi.org/project/attrs/23.1.0/)
- **Signature changed** `attr.field`  

Was def field(\*, default=NOTHING, validator=None, repr=True, hash=None, init=True, metadata=None, converter=None, factory=None, kw_only=False, eq=None, order=None, on_setattr=None, alias=None); now def field(\*, default=NOTHING... [pypi.org](https://pypi.org/project/attrs/23.1.0/)
- **Signature changed** `attr.filters.exclude`  

Was def exclude(\*what: Union\[type, Attribute\[Any\]\]) -> \_FilterType\[Any\]; now def exclude(\*what: Union\[type, str, Attribute\[Any\]\]) -> \_FilterType\[Any\]. [pypi.org](https://pypi.org/project/attrs/23.1.0/)
- **Signature changed** `attr.filters.include`  

Was def include(\*what: Union\[type, Attribute\[Any\]\]) -> \_FilterType\[Any\]; now def include(\*what: Union\[type, str, Attribute\[Any\]\]) -> \_FilterType\[Any\]. [pypi.org](https://pypi.org/project/attrs/23.1.0/)
- **Signature changed** `attr.resolve_types`  

Was def resolve_types(cls: \_C, globalns: Optional\[Dict\[str, Any\]\] = None, localns: Optional\[Dict\[str, Any\]\] = None, attribs: Optional\[List\[Attribute\[Any\]\]\] = None) -> \_C; now def resolve_types(cls: \_A, globalns: Optional\[Dict\[str, Any\]\] =... [pypi.org](https://pypi.org/project/attrs/23.1.0/)
- **Signature changed** `attr.validators.optional`  

Was def optional(validator: Union\[\_ValidatorType\[\_T\], List\[\_ValidatorType\[\_T\]\]\]) -> \_ValidatorType\[Optional\[\_T\]\]; now def optional(validator: Union\[\_ValidatorType\[\_T\], List\[\_ValidatorType\[\_T\]\], Tuple\[\_ValidatorType\[\_T\]\]\]) ->... [pypi.org](https://pypi.org/project/attrs/23.1.0/)

## attrs 22.1.0 breaking changes

attrs 22.1.0, released July 28, 2022: 10 breaking changes.

- **Removed**  

Python 2.7 is no longer supported; users on Python 2.7 must stay on attrs 21.4.0 or earlier. [github.com](https://github.com/python-attrs/attrs/releases/tag/22.1.0)
- **Removed** `attr.filters.isclass`  

attr.filters.isclass was removed in attrs 22.1.0 [pypi.org](https://pypi.org/project/attrs/22.1.0/)
- **Removed** `attrs.Attribute.cmp`  

The deprecated cmp attribute of attrs.Attribute is gone; the cmp argument to attr.s is unaffected. [github.com](https://github.com/python-attrs/attrs/releases/tag/22.1.0)
- **Behavior changed** `attrs.validators.deep_iterable`  

The member_validator argument now also accepts a list, which is wrapped in attrs.validators.and\_(). [github.com](https://github.com/python-attrs/attrs/releases/tag/22.1.0)
- **Signature changed** `attr.asdict`  

Was def asdict(inst: Any, recurse: bool = True, filter: Optional\[\_FilterType\[Any\]\] = None, dict_factory: Type\[Mapping\[Any, Any\]\] = dict, retain_collection_types: bool = False, value_serializer: Optional\[Callable\[\[type, Attribute\[Any\]... [pypi.org](https://pypi.org/project/attrs/22.1.0/)
- **Signature changed** `attr.astuple`  

Was def astuple(inst: Any, recurse: bool = True, filter: Optional\[\_FilterType\[Any\]\] = None, tuple_factory: Type\[Sequence\[Any\]\] = tuple, retain_collection_types: bool = False) -> Tuple\[Any, ...\]; now def astuple(inst: AttrsInstance... [pypi.org](https://pypi.org/project/attrs/22.1.0/)
- **Signature changed** `attr.fields`  

Was def fields(cls: type) -> \_Fields; now def fields(cls: Type\[AttrsInstance\]) -> Any. [pypi.org](https://pypi.org/project/attrs/22.1.0/)
- **Signature changed** `attr.fields_dict`  

Was def fields_dict(cls: type) -> Dict\[str, Attribute\[Any\]\]; now def fields_dict(cls: Type\[AttrsInstance\]) -> Dict\[str, Attribute\[Any\]\]. [pypi.org](https://pypi.org/project/attrs/22.1.0/)
- **Signature changed** `attr.validate`  

Was def validate(inst: Any) -> None; now def validate(inst: AttrsInstance) -> None. [pypi.org](https://pypi.org/project/attrs/22.1.0/)
- **Signature changed** `attr.validators.deep_iterable`  

Was def deep_iterable(member_validator: \_ValidatorType\[\_T\], iterable_validator: Optional\[\_ValidatorType\[\_I\]\] = None) -> \_ValidatorType\[\_I\]; now def deep_iterable(member_validator: \_ValidatorArgType\[\_T\], iterable_validator... [pypi.org](https://pypi.org/project/attrs/22.1.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
