python-attrs
attrs
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Inline init annotate STRING static fallback for full coverage Nested _static_value's def line stayed uncovered under combined coverage despite body hits; fold the stringify path into the annotate body so fail-under=100 can pass.
MohammedAnasNathani:fix/1596-init-forward-ref-annotations
5 hours ago
Fix 3.14 init annotate fallback and getsource indent CI on #1598 failed because __annotate__ only re-fetched class annotations and dropped attr.ib(type=...) / string types that never appear on the class. Prefer live class anns, fall back to the full static map, and leave bare strings under VALUE so get_type_hints can eval (and raise NameError for a missing fake module). Also rebind the compiled init to an unindented linecache entry under the stable <attrs generated __init__ ...> filename so inspect.getsource matches docs/doctests without colliding with the factory script cache.
MohammedAnasNathani:fix/1596-init-forward-ref-annotations
7 hours ago
Fix generated __init__ forward-ref annotations (#1596) Stop snapshotting module globals into generated constructors so late forward references resolve like hand-written methods. On 3.14+, attach PEP 649 __annotate__ that re-reads live class annotations, and rewrite __annotate__ closure cells for slots classes.
MohammedAnasNathani:fix/1596-init-forward-ref-annotations
8 hours ago
Tighten generator contract
vladfedoriuk:1437-on-setattr-as-generator
11 hours ago
docs
vladfedoriuk:1437-on-setattr-as-generator
14 hours ago
Optimize: only check corouting when generating method
vladfedoriuk:1437-on-setattr-as-generator
14 hours ago
Merge branch 'main' into 1437-on-setattr-as-generator
vladfedoriuk:1437-on-setattr-as-generator
14 hours ago
Update dev & drop pre-commit.ci (#1597) * update dev * Double-locking Ruff is a PITA #tinWasRight * Move interrogate too * update docs
main
14 hours ago
Latest Branches
CodSpeed Performance Gauge
-13%
Fix generated __init__ forward-ref annotations under get_annotations / 3.14
#1598
6 hours ago
0c6bf4f
MohammedAnasNathani:fix/1596-init-forward-ref-annotations
CodSpeed Performance Gauge
0%
Make on_setattr hooks accept generators
#1592
11 hours ago
ec2e7da
vladfedoriuk:1437-on-setattr-as-generator
CodSpeed Performance Gauge
N/A
Update dev & drop pre-commit.ci
#1597
14 hours ago
4ee25dd
update-dev
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs