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
On this page
Latest version 26.1.0, released March 19, 2026. Source repository
Its 23.1.0 release drops Python 3.6. Python end of life dates.
- From 24.1.0 to 26.1.0: 3 breaking changes in 1 version.
- From 22.1.0 to 26.1.0: 16 breaking changes in 3 versions.
attrs 26.1.0 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 - Signature changed
attr.fields
Was def fields(cls: type[AttrsInstance]) -> Any; now def fields(cls: type[AttrsInstance] | AttrsInstance) -> Any. pypi.org - 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
attrs 24.1.0 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 - 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 - Removed
attrs.validators.provides
attrs.validators.provides() has been removed. The removed code is available as a gist for copy and paste. github.com - 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
attrs 23.1.0 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 - Removed
attrs.__doc__
attrs.__doc__ was removed in attrs 23.1.0 pypi.org - 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 - Signature changed
attr.evolve
Was def evolve(inst: _T, **changes: Any) -> _T; now def evolve(*args, **changes: Any) -> _T. pypi.org - 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 - 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 - 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 - 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 - 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
attrs 22.1.0 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 - Removed
attr.filters.isclass
attr.filters.isclass was removed in attrs 22.1.0 pypi.org - Removed
attrs.Attribute.cmp
The deprecated cmp attribute of attrs.Attribute is gone; the cmp argument to attr.s is unaffected. github.com - Behavior changed
attrs.validators.deep_iterable
The member_validator argument now also accepts a list, which is wrapped in attrs.validators.and_(). github.com - 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 - 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 - Signature changed
attr.fields
Was def fields(cls: type) -> _Fields; now def fields(cls: Type[AttrsInstance]) -> Any. pypi.org - 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 - Signature changed
attr.validate
Was def validate(inst: Any) -> None; now def validate(inst: AttrsInstance) -> None. pypi.org - 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
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.