python-attrs
attrs
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
r266-tech:fix/kw-only-exc-pickle
6 days ago
Fix pickling of exception classes with kw_only attributes BaseException.__reduce__ returns (cls, self.args, state), passing self.args as positional arguments to cls() on unpickle. When kw_only=True, __init__ only accepts keyword-only arguments, causing unpickling to fail with: TypeError: __init__() takes 1 positional argument but 2 were given This fix adds a custom __reduce__ for exception classes that have kw_only attrs. It uses a _rebuild_exc helper that creates the instance via __new__ (bypassing __init__) and restores attributes directly, then calls BaseException.__init__ to properly set self.args. Fixes GH#734
r266-tech:fix/kw-only-exc-pickle
6 days ago
[pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
JasonOA888:fix/deep-iterable-error-message-1245
8 days ago
fix: improve error messages in deep_iterable and deep_mapping validators When inner validators fail, the error message now includes the index/key of the failing element instead of just the parent attribute name. Before: "Length of 'x' must be >= 1: 0" After: "Length of 'x[1]' must be >= 1: 0" This makes it clear which element in the iterable/mapping failed validation. Fixes #1245
JasonOA888:fix/deep-iterable-error-message-1245
8 days ago
Prepare 26.1.0
9 days ago
Fix file name
redruin1:evolve-inherited-fields
13 days ago
Merge branch 'main' into evolve-inherited-fields
redruin1:evolve-inherited-fields
13 days ago
Add instance support to attrs.fields() (#1529) * Add instance support to attrs.fields() fixes #1400 * fix pr#
main
14 days ago
Latest Branches
CodSpeed Performance Gauge
0%
Fix pickling of exception classes with kw_only attributes (#734)
#1534
6 days ago
c10e111
r266-tech:fix/kw-only-exc-pickle
CodSpeed Performance Gauge
0%
fix: improve error messages in deep_iterable and deep_mapping validators
#1533
8 days ago
9764e29
JasonOA888:fix/deep-iterable-error-message-1245
CodSpeed Performance Gauge
0%
Add `reuse()` to `Attribute` for field evolution
#1429
13 days ago
8ef7c8b
redruin1:evolve-inherited-fields
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs